Skip to content

Instantly share code, notes, and snippets.

@alvinthen
Last active January 6, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvinthen/e19337e06cdf0c4a3034e2fbf81a90a5 to your computer and use it in GitHub Desktop.
Save alvinthen/e19337e06cdf0c4a3034e2fbf81a90a5 to your computer and use it in GitHub Desktop.
Rails minitest and guard setup

Add gems

group :test do
  gem 'rails-controller-testing', '0.1.1'
  gem 'minitest-reporters',       '1.1.9'
  gem 'guard',                    '2.13.0'
  gem 'guard-minitest',           '2.4.4'
end

Add in test/test_helper.rb

require "minitest/reporters"
Minitest::Reporters.use!

Run bundle exec guard init and edit Guardfile

Start guard by running bundle exec guard

Add to .gitignore

# Ignore Spring files.
/spring/*.pid
@alvinthen
Copy link
Author

minitest_reporter
guard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment