0.02
No commit activity in last 3 years
No release in over 3 years
Minitest plugin that starts a byebug session on test failures
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

>= 0
~> 5.0
 Project Readme

Minitest::Byebug

Start a byebug session when a test fails. Heavily inspired by minitest-debugger

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. GitHub: @kaspth. Twitter: @kaspth.