No commit activity in last 3 years
No release in over 3 years
Tweaks the built-in RSpec formatters to cause failures to be printed immediately when they occur.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6.2
~> 1.13
~> 10.0
~> 3.0

Runtime

 Project Readme

RSpec::PrintFailuresEagerly Gem Version

This gem, featured in Effective Testing with RSpec 3: Build Ruby Apps with Confidence, modifies the built-in progress and documentation formatters to make them print failures eagerly, when they happen, rather than waiting until the end to print them all. This can be handy for long-running spec suites so you can begin digging into a failure while the rest of your suite finishes running.

Installation

Add this line to your application's Gemfile:

gem 'rspec-print_failures_eagerly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspec-print_failures_eagerly

Usage

Just load it from spec/spec_helper.rb:

require 'rspec/print_failures_eagerly'

...or tell RSpec to require it by putting it in .rspec:

--require rspec/print_failures_eagerly

That's it! The book also walks through how to set it up to automatically apply to all projects on your machine, without needing to add this gem to each.

License

The gem is available as open source under the terms of the MIT License.