https://github.com/radiantnode/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.
https://github.com/radiantnode/rspec-flamingo
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/radiantnode/rspec-flamingo
- Owner: radiantnode
- Created: 2021-05-02T17:33:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T01:40:45.000Z (over 2 years ago)
- Last Synced: 2025-10-11T05:42:07.046Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 29.3 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`.
```ruby
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
```