-_-_-_-_-_-_-_,------,
_-_-_-_-_-_-_-| /\_/\
-_-_-_-_-_-_-~|__( ^ .^)
_-_-_-_-_-_-_-"" ""
This is my take on the Nyan Cat RSpec Formatter. It simply creates a rainbow trail of test results. It also counts the number of examples as they execute and highlights failed and pending specs.
The rainbow changes colors as it runs. See it in action here.
rspec --format NyanCatFormatter
$ gem install nyan-cat-formatter
If you want to use Nyan Cat as your default formatter, simply put the options in your .rspec file:
--format NyanCatFormatter
To use Nyan Cat with Rails "rake spec" you need to add Nyan Cat dependecy in your Gemfile.
group :test do
gem "nyan-cat-formatter"
end
And then
bundle install
Once you've made your great commits:
- Fork Nyan Cat
- Create a topic branch - git checkout -b my_branch
- Push to your branch - git push origin my_branch
- Create a Pull Request from your branch
- That's it!
Matt Sears :: @mattsears