= Deprecated???
If you are using the RSpec support, it turns out that there is an even more awesome emoji test reporter out there! Aaron Kromer's Emoji-RSpec. I'd recommend looking at that one. I'm contributing to that one to get minitest support, as well.
Aaron's has an awesome number of different formatters. Lots of emoji love!
= Emoji Test Love
== DESCRIPTION:
Print out emoji for your test passes, fails, and skips. Whether you love Minitest or RSpec, we have amazing emoji love for you!
Look how beautiful it is!
This is entirely based on Tenderlove's most awesome minitest-emoji
In fact, the minitest code is actually just copied from there. Truth!
This was originally expanded as part of 2013's Emulation March.
== FEATURES/PROBLEMS:
- See description
== SYNOPSIS:
Do you use minitest? You are in luck! Here's an example.
require 'minitest/autorun'
require 'minitest/emoji'
describe 'my amazing tests' do
# generate many hearts!
50.times do |i|
it "must #{i}" do
100.must_equal 100
end
end
# generate some poops!
2.times do |i|
it "compares #{i} to #{i + 1}" do
i.must_equal i + 1
end
end
it 'skips things!!' do
skip "don't care!"
end
end
If you use RSpec, you are also in luck! We have a custom formatter for you. Here's a sample spec file.
describe 'my amazing tests' do
# generate many hearts!
50.times do |i|
it "must #{i}" do
100.should == 100
end
end
# generate some poops!
2.times do |i|
it "compares #{i} to #{i + 1}" do
i.should == i + 1
end
end
it 'skips things!!' do
pending "don't care!"
end
end
Now just rock out with our formatter
rspec --format RSpec::Emoji
== REQUIREMENTS:
- minitest -or-
- rspec
== INSTALL:
- gem install emoji-test-love