Show failing specs instantly
Ruby
Latest commit 390060d Jun 9, 2016 @grosser readme
Failed to load latest commit information.
lib/rspec v1.0.0 May 20, 2016
spec Changed formatter to inherited from BaseFormatter May 20, 2016
.travis.yml travis May 10, 2016
Gemfile lock it down Apr 9, 2013
Gemfile.lock v1.0.0 May 20, 2016
Rakefile check gem version Sep 2, 2015
Readme.md readme Jun 9, 2016
rspec-instafail.gemspec readme Jan 6, 2015

Readme.md

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

gem install rspec-instafail

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

Alternatives

Use built-in --fail-fast

Authors

Contributors

Michael Grosser
michael@grosser.it
License: MIT