Start a byebug session when a test fails. Heavily inspired by minitest-debugger
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install minitest-byebug
Add this to the top of your test file or helper:
require 'minitest/byebug' if ENV['DEBUG']
Then run your tests as normal but define
% DEBUG=1 rake test
up 3will take you to the test failure.
Distributed with an MIT License.
Contributions more than welcome.
Made by Kasper Timm Hansen. GitHub: @kaspth. Twitter: @kaspth.