A set of emoji based RSpec formatters for use with test output.
Note: Stuck on Ruby 1.8.7? π¬ See 0.x version end of life note.
Add this line to your application's Gemfile:
group :test do
gem 'emoji-rspec'
end
And then execute:
$ bundle
Or install it yourself as:
$ gem install emoji-rspec
If you want to always have it included, add it to the top of your .rspec
file:
# .rspec
--require emoji-rspec
If not using the .rspec
file method, you will need to manually include
emoji-rspec
on the command line when you call rspec
:
$ rspec --require emoji-rspec --format smiles
WARNING: This is crazy, but then that's the idea if you've seen the show. You take full responsibility for any insanity caused by this formatter.
Pass: π β π π« β¨ πΈ :person_with_blond_hair: π π
Fail: πΏ π π’ π₯ πΉ πΊ π© π²
Pending: π½ π± π π² π π§ π¦ πΎ
This can be used with the following --format
names:
adventure
adventure_time
adventuretime
EmojiTestLove::AdventureTimeFormatter
See also Thumbs
Pass: π
Fail: π
Pending: β
This can be used with the following --format
names:
aggressive_thumbs
aggressivethumbs
EmojiTestLove::AggressiveThumbsFormatter
Pass: π
Fail: π
Pending: π
This can be used with the following --format
names:
books
reading_rainbow
EmojiTestLove::BooksFormatter
Similar to Kanpai and Drinking Game. Here you get to celebrate your hard work when your tests pass. Have a πΊ and cheers with friends π».
Pass: π» (cheers with friends / pair programmer)
Fail: β (oops maybe too many πΊ, have some coffee)
Pending: π (still work to do, have some nom noms)
This can be used with the following --format
names:
celebrate
celebration
cheers
EmojiTestLove::CelebrateFormatter
Ever have that late night coding session? Now you can do it in style.
This is the one time that we do not advise you write failing tests first!
Also we advise that you turn on fail fast during these sessions:
RSpec.configure{ |c| c.fail_fast = true }
Or if you prefer the command line persuasion: --fail-fast
Now without further delay
Pass: β
Fail: πΈ (gulp of a mixed drink or a shot)
Pending: πΊ (gulp of beer)
This can be used with the following --format
names:
drinking
drinking_game
drinkingame
EmojiTestLove::DrinkingGameFormatter
If coffee isn't your thing, there is a tea version too.
Pass: π΅
Fail: πΈ (gulp of a mixed drink or a shot)
Pending: πΊ (gulp of beer)
This can be used with the following --format
names:
drinking_tea
drinkingtea
drinking_game_tea
drinkinggametea
EmojiTestLove::DrinkingGameTeaFormatter
Pass: π
Fail: π
Pending: π
This can be used with the following --format
names:
apples
fruit
EmojiTestLove::FruitFormatter
Similar to Celebrate and Drinking Game. Here you get to celebrate your hard work when your tests pass. So lift some πΆ and 'Kanpai!'.
Pass: πΆ ("Kanpai!" with friends / pair programmer)
Fail: π΅ (oops maybe too much πΆ, have some green tea)
Pending: π£ (still work to do, have some nom noms)
This can be used with the following --format
names:
kanpai
δΉΎζ―
EmojiTestLove::KanpaiFormatter
Pass: π
Fail: π
Pending: π
This can be used with the following --format
names:
hearts
life
life_hearts
lifehearts
EmojiTestLove::LifeHeartsFormatter
Pass: π
Fail: π
Pending: π°
This can be used with the following --format
names:
lucky
EmojiTestLove::LuckyFormatter
I wish Apple had more emoji to make this one a bit more interesting.
Pass: π‘
Fail: π
Pending: π₯
This can be used with the following --format
names:
omkase
γδ»»γ
EmojiTestLove::OmkaseFormatter
Pass: π
Fail: π»
Pending: π¬ (aoshima)
This can be used with the following --format
names:
smile_dip
smiledip
fun_dip
fundip
aoshima
EmojiTestLove::SmileDipFormatter
Pass: π
Fail: π‘
Pending: π¬
This can be used with the following --format
names:
smiles
EmojiTestLove::SmileyFacesFormatter
Pass: βοΈ
Fail: β
Pending: βοΈ
This can be used with the following --format
names:
sunshine
sunny
EmojiTestLove::SunshineFormatter
Pass: π’
Fail: πͺ²
Pending: π
This can be used with the following --format
names:
turtles
turtles_all_the_way_down
all_the_way_down
EmojiTestLove::TurtlesFormatter
See also Aggressive Thumbs
Pass: π
Fail: π
Pending: β
This can be used with the following --format
names:
thumbs
EmojiTestLove::ThumbsFormatter
Pass: π·
Fail: π
Pending: π±
This can be used with the following --format
names:
waddles
EmojiTestLove::WaddlesFormatter
Pass: π
Fail: π
Pending: π
This can be used with the following --format
names:
zen
zen_smiles
zensmiles
EmojiTestLove::ZenSmilesFormatter
Please submit them here https://github.com/cupakromer/emoji-rspec/issues
- Fork it
- 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 new Pull Request
The current main release. Full support for 2.0.0, with some backwards support for 1.9.2 and 1.9.3.
This has reached end of life. Further improvements will only be on the 1.x line. Pull Requests will be welcome on this branch, but new formatters will not be added. If you submit a PR for this, please maintain 1.8.7 support.
Copyright (c) 2012 Aaron Kromer, released under the MIT License.
See LICENSE for details.