ParallelFormatter
Works with RSpec 3.3.0 and up
An RSpec custom formatter that works nicely with parallel_tests.
- Patterned after DocumentFormatter
- Eliminates indentations
- Prints example description and location
- failures will instantly display info - just like rspec-instafail
Example logs:
GROUP STARTED: when session is authenticated
TEST STARTED: ./spec/features/home_spec.rb:15: launches successfully
TEST PASSED: ./spec/features/home_spec.rb:15: launches successfully
GROUP STARTED: when using pre-filter thumbnails
TEST STARTED: ./spec/features/home_spec.rb:20: uses all pre-filters
TEST PASSED: ./spec/features/tutorial_spec.rb:23: I can visit the share tutorial
TEST STARTED: ./spec/features/tutorial_spec.rb:19: I can visit the import tutorial
TEST PASSED: ./spec/features/tutorial_spec.rb:19: I can visit the import tutorial
TEST STARTED: ./spec/features/tutorial_spec.rb:15: I can visit the find tutorial
TEST PASSED: ./spec/features/tutorial_spec.rb:15: I can visit the find tutorial
Installation
Add this line to your application's Gemfile:
gem 'parallel_formatter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install parallel_formatter
Usage
add to your .rspec file
--require parallel_formatter
--format RSpec::ParallelFormatter
Contributing
- Fork it ( https://github.com/[my-github-username]/parallel_formatter/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request