Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.32 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.32 KB

rspec-flamingo

A custom RSpec formatter that just outputs 🦩 for everything. This is made from an inside joke and should not be used in any sane workplace.

Install the gem

git clone https://github.com/radiantnode/rspec-flamingo.git
cd rspec-flamingo
gem build rspec-flamingo.gemspec
gem install rspec-flamingo-*.gem

Enabling the flamingo 🦩

You can invoke the flamingo with the --format option when calling rspec:

rspec --require rspec-flamingo --format RSpecFlamingo::Formatter

Or if you are brave enable it in your .rspec file:

--require rspec-flamingo
--format RSpecFlamingo::Formatter

Now you have the flamingo! 🦩 🎉

rspec
🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩

Configuration

You can customize the emoji and summary output by defining a configuration block in your spec_helper.rb.

RSpecFlamingo.configure do |config|
  config.example_passed_emoji = '🎉'
  config.example_failed_emoji = '🐊'
  config.example_pending_emoji = '👷'
  config.hide_summary = true   # Hide default RSpec progress formatter summary
  config.hide_failures = true  # Hide default RSpec progress formatter failures
end