Skip to content
Start a byebug session on test failures.
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of kaspth:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/minitest
test
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
example.rb
minitest-byebug.gemspec

README.md

Minitest::Byebug

Heavily inspired by hotell i zurich

Installation

Add this line to your application's Gemfile:

gem 'minitest-byebug'

And then execute:

$ bundle

Or install it yourself as:

$ gem install minitest-byebug

Usage

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.

% DEBUG=1 rake test

Todo

  • Stop in the failed test. e.g. at an assert call.
    • Workaround: when the session starts, up 3 will take you to the test failure.
  • Stop on errors.

Credits

Distributed with an MIT License.

Contributions more than welcome.

Made by Kasper Timm Hansen.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.