Skip to content
master
Go to file
Code
This branch is 19 commits ahead, 14 commits behind tenderlove:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Emoji Test Love

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

About

View your test output as emoji

Resources

License

Languages

You can’t perform that action at this time.