ProductPromotion
Logo

Ruby

made by https://0x3d.site

GitHub - mattsears/nyan-cat-formatter: Nyan Cat inspired RSpec formatter!
Nyan Cat inspired RSpec formatter! Contribute to mattsears/nyan-cat-formatter development by creating an account on GitHub.
Visit Site

GitHub - mattsears/nyan-cat-formatter: Nyan Cat inspired RSpec formatter!

GitHub - mattsears/nyan-cat-formatter: Nyan Cat inspired RSpec formatter!

Nyan Cat RSpec Formatter Build Status

NYAN

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.

Works with RSpec 1.3, 2 and 3.

Using Nyan Cat

You can either specify the formatting when using the rspec command:

rspec --format NyanCatFormatter

Or add --format NyanCatFormatter to a .rspec file placed in your project's root directory, so that you won't have to specify the --format option everytime you run the command.

###Using with Bundler

To use Nyan Cat with a project that uses Bundler (Rails or Sinatra f.e.) you need to add Nyan Cat dependecy to your Gemfile:

group :test do
  gem "nyan-cat-formatter"
end

And then run bundle install.

Installing it

$ 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

Playing the Nyan Cat song

You can then enjoy playback in two ways:

1. Play the song only when desired using a command line option:

Use the following command to run your specs:

$ rspec spec -f NyanCatMusicFormatter

And enjoy the site of Nyan Cat running across your terminal to the Nyan Cat song!

2. Play the song by default when you run your specs:

Make sure your .rspec file in your application's root directory contains the following:

--color
--format NyanCatMusicFormatter

Then run rspec spec and enjoy Nyan Cat formatted text output accompanied by the Nyan Cat song by default!

This currently only works on Mac OS X or on Linux (if you have mpg321 or mpg123 installed).

Using the Nyan Cat Wide Formatter

The classic Nyan Cat Formatter uses a terminal column per test. One test, and single step that the cat goes ahead. The Nyan Cat Wide Formatter, instead, uses the whole terminal width, so the cat will always end up reaching the end of the terminal.

Simple use it by configuring it as the RSpec formatter:

--format NyanCatWideFormatter

Contributing

Once you've made your great commits:

  1. Fork Nyan Cat
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

Author

Matt Sears :: @mattsears

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory