Minitest::FailFast
Reimplements RSpec's fail-fast feature, which exits running your test-suite as there is a test-failure.
Installation
Add this line to your application's Gemfile:
gem 'minitest-fail-fast'And then execute:
$ bundle
Or install it yourself as:
$ gem install minitest-fail-fast
If you are using Minitest 6+, add this to your test_helper:
# Needed for Minitest 6
Minitest.load :fail_fastUsage
You can either activate the plugin by passing -f, --fail-fast:
$ TESTOPTS="--fail-fast" bundle exec rake
Or by requiring minitest/fail_fast in your test_helper.
Contributing
- Fork it ( https://github.com/teoljungberg/minitest-fail-fast/fork )
- 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 a new Pull Request