0.63
No release in over 3 years
Low commit activity in last 3 years
Show failing specs instantly
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

rspec-instafail

Gem Version Build Status

Show failing specs instantly. Show passing spec as green dots as usual.

Upgrading to 1.0 ? add --format progress

Output

....................................................*....
1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
   Failure/Error: json_response = JSON.parse response.body
   A JSON text must at least contain two octets!
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
   # /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
   # ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
..................................................................

Finished in 650.095614 seconds

1680 examples, 1 failure, 1 pending

Install

Rspec 2.x and higher

gem install rspec-instafail

# .rspec
--require rspec/instafail
--format RSpec::Instafail
--format progress # to keep dots appear

Rspec 1.x

You have to use the version 0.4.0 with this version of Rspec. See the 0.4.0 branch.

Alternatives

Use built-in --fail-fast

Authors

Michael Grosser
michael@grosser.it
License: MIT