Parses RSpec error output to provide a summary showing what errors were encountered, the number of occurrences per error, and file path and line number locations.
Add this line to your application's Gemfile:
gem 'rspec_error_summary'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rspec_error_summary
$ rspec_error_summary [options]
-p, --path [ARG]
Default: "./spec/"
Path to the directory of spec files or individual spec file to be tested
-s, --search [ARG]
Search for a specific string of text in the error message
-v, --verbose
Verbose output. Displays full error messages. By default, error messages are truncated to 140 characters. Any object representations ("<#Model:0x3fdddd8b036c>") in the messages are also truncated to avoid confusion when counting the number of occurrences, as these objects will have different memory addresses, despite having the same error
e.g. "Undefined method 'test' for <#Model:0x3fdddd8b036c>" will not be considered another occurrence of the error "Undefined method 'test' for <#Model:0x2bdecb8b026a>" due to mismatching memory addresses, even though the cause of the error is the same.
-h, --help
Show this message
- Fork it ( https://github.com/binarydev/rspec_error_summary/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