cupakromer/emoji-rspec
{ "createdAt": "2012-11-17T17:49:29Z", "defaultBranch": "master", "description": "Custom Emoji Formatters for RSpec", "fullName": "cupakromer/emoji-rspec", "homepage": null, "language": "Ruby", "name": "emoji-rspec", "pushedAt": "2013-12-15T04:50:04Z", "stargazersCount": 172, "topics": [], "updatedAt": "2025-08-07T09:30:00Z", "url": "https://github.com/cupakromer/emoji-rspec"}Emoji-RSpec
Section titled “Emoji-RSpec”A set of emoji based RSpec formatters for use with test output.
Installation
Section titled “Installation”Note: Stuck on Ruby 1.8.7? :grimacing: See 0.x version end of life note.
Add this line to your application’s Gemfile:
group :test do gem 'emoji-rspec'endAnd then execute:
$ bundleOr install it yourself as:
$ gem install emoji-rspecIf you want to always have it included, add it to the top of your .rspec file:
--require emoji-rspecIf 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 smilesFormatters
Section titled “Formatters”![]()
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: :sparkling_heart: :star: :star2: :dizzy: :sparkles: :princess: :person_with_blond_hair: :dog2: :gift_heart:
Fail: :imp: :smiling_imp: :anger: :boom: :japanese_ogre: :japanese_goblin: :poop: :dragon_face:
Pending: :alien: :iphone: :pill: :game_die: :school_satchel: :penguin: :flashlight: :space_invader:
This can be used with the following --format names:
adventureadventure_timeadventuretimeEmojiTestLove::AdventureTimeFormatter
Aggressive Thumbs
Section titled “Aggressive Thumbs”See also Thumbs
Pass: :ok_hand:
Fail: :facepunch:
Pending: :fist:
This can be used with the following --format names:
aggressive_thumbsaggressivethumbsEmojiTestLove::AggressiveThumbsFormatter
Pass: :green_book:
Fail: :closed_book:
Pending: :orange_book:
This can be used with the following --format names:
booksreading_rainbowEmojiTestLove::BooksFormatter
Celebrate
Section titled “Celebrate”Similar to Kanpai and Drinking Game. Here you get to celebrate your hard work when your tests pass. Have a :beer: and cheers with friends :beers:.
Pass: :beers: (cheers with friends / pair programmer)
Fail: :coffee: (oops maybe too many :beer:, have some coffee)
Pending: :pizza: (still work to do, have some nom noms)
This can be used with the following --format names:
celebratecelebrationcheersEmojiTestLove::CelebrateFormatter
Drinking Game
Section titled “Drinking Game”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: :coffee:
Fail: :cocktail: (gulp of a mixed drink or a shot)
Pending: :beer: (gulp of beer)
This can be used with the following --format names:
drinkingdrinking_gamedrinkingameEmojiTestLove::DrinkingGameFormatter
If coffee isn’t your thing, there is a tea version too.
Pass: :tea:
Fail: :cocktail: (gulp of a mixed drink or a shot)
Pending: :beer: (gulp of beer)
This can be used with the following --format names:
drinking_teadrinkingteadrinking_game_teadrinkinggameteaEmojiTestLove::DrinkingGameTeaFormatter
Pass: :green_apple:
Fail: :tomato:
Pending: :lemon:
This can be used with the following --format names:
applesfruitEmojiTestLove::FruitFormatter
Similar to Celebrate and Drinking Game. Here you get to celebrate your hard work when your tests pass. So lift some :sake: and ‘Kanpai!’.
Pass: :sake: (“Kanpai!” with friends / pair programmer)
Fail: :tea: (oops maybe too much :sake:, have some green tea)
Pending: :sushi: (still work to do, have some nom noms)
This can be used with the following --format names:
kanpai乾杯EmojiTestLove::KanpaiFormatter
Life Hearts
Section titled “Life Hearts”Pass: :green_heart:
Fail: :broken_heart:
Pending: :yellow_heart:
This can be used with the following --format names:
heartslifelife_heartslifeheartsEmojiTestLove::LifeHeartsFormatter
Pass: :four_leaf_clover:
Fail: :mushroom:
Pending: :chestnut:
This can be used with the following --format names:
luckyEmojiTestLove::LuckyFormatter
I wish Apple had more emoji to make this one a bit more interesting.
Pass: :dango:
Fail: :rice_cracker:
Pending: :fish_cake:
This can be used with the following --format names:
omkaseお任せEmojiTestLove::OmkaseFormatter
Smile Dip
Section titled “Smile Dip”Pass: :lollipop:
Fail: :ghost:
Pending: :dolphin: (aoshima)
This can be used with the following --format names:
smile_dipsmiledipfun_dipfundipaoshimaEmojiTestLove::SmileDipFormatter
Smiles
Section titled “Smiles”Pass: :blush:
Fail: :rage:
Pending: :grimacing:
This can be used with the following --format names:
smilesEmojiTestLove::SmileyFacesFormatter
Sunshine
Section titled “Sunshine”Pass: :sunny:
Fail: :umbrella:
Pending: :cloud:
This can be used with the following --format names:
sunshinesunnyEmojiTestLove::SunshineFormatter
Turtles
Section titled “Turtles”Pass: :turtle:
Fail: :beetle:
Pending: :snail:
This can be used with the following --format names:
turtlesturtles_all_the_way_downall_the_way_downEmojiTestLove::TurtlesFormatter
Thumbs
Section titled “Thumbs”See also Aggressive Thumbs
Pass: :thumbsup:
Fail: :thumbsdown:
Pending: :hand:
This can be used with the following --format names:
thumbsEmojiTestLove::ThumbsFormatter
![]()
Pass: :pig:
Fail: :bug:
Pending: :seedling:
This can be used with the following --format names:
waddlesEmojiTestLove::WaddlesFormatter
Zen Smiles
Section titled “Zen Smiles”Pass: :expressionless:
Fail: :disappointed:
Pending: :pensive:
This can be used with the following --format names:
zenzen_smileszensmilesEmojiTestLove::ZenSmilesFormatter
Bugs, Issues, and Suggestions
Section titled “Bugs, Issues, and Suggestions”Please submit them here https://github.com/cupakromer/emoji-rspec/issues
Contributing
Section titled “Contributing”- 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
Versions
Section titled “Versions”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 / License
Section titled “Copyright / License”Copyright (c) 2012 Aaron Kromer, released under the MIT License.
See LICENSE for details.






