Still using TestUnit? Great! This gem helps automate DHHs commands gem which runs all test inside your Rails console.
Add this line to your application's Gemfile:
gem 'automated-commands', require: 'automated_commands'
And then execute:
You basically need to follow two steps to get it up and running:
$ RAILS_ENV=test bundle exec rails c
That's it! Now when you are changing any files located under
test your tests will be automatically be run.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request