= 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!
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