Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rspec-3-book/rspec-print_failures_eagerly
Tweaks the built-in RSpec formatters to cause failures to be printed immediately when they occur.
https://github.com/rspec-3-book/rspec-print_failures_eagerly
rspec rspec-formatter ruby
Last synced: 6 days ago
JSON representation
Tweaks the built-in RSpec formatters to cause failures to be printed immediately when they occur.
- Host: GitHub
- URL: https://github.com/rspec-3-book/rspec-print_failures_eagerly
- Owner: rspec-3-book
- License: mit
- Created: 2016-10-05T07:00:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T05:50:42.000Z (over 7 years ago)
- Last Synced: 2024-10-31T09:37:00.720Z (13 days ago)
- Topics: rspec, rspec-formatter, ruby
- Language: Ruby
- Size: 13.7 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# RSpec::PrintFailuresEagerly [![Gem Version](https://badge.fury.io/rb/rspec-print_failures_eagerly.svg)](https://badge.fury.io/rb/rspec-print_failures_eagerly)
This gem, featured in [Effective Testing with RSpec 3: Build Ruby Apps with
Confidence](https://pragprog.com/book/rspec3/effective-testing-with-rspec-3),
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:
```ruby
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`:
``` ruby
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](http://opensource.org/licenses/MIT).