Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 969 Bytes

File metadata and controls

23 lines (13 loc) · 969 Bytes

Show Failure Fast RSpec Formatter

This formatter immediately shows the failure message when a spec fails. Then you don't need wait the final report to know about the failures.

You can use it directly in the command line:

$ rspec --require "/path/to/show_failure_fast_rspec_formatter.rb" --format ShowFailureFastRspecFormatter -- ./spec/your_spec.rb

Or setting the SPEC_OPTS environment variable in your .bash_profile, .zshrc, etc:

export SPEC_OPTS="--require ~/Projects/show-failure-fast-rspec-formatter/show_failure_fast_rspec_formatter.rb --format ShowFailureFastRspecFormatter"

Or wherever RSpec reads command line configuration options https://www.relishapp.com/rspec/rspec-core/docs/configuration/read-command-line-configuration-options-from-files

Dependency

You need install terminal-notifier to receive notification on Mac OS.

brew install terminal-notifier