2017 © Pedro Peláez
 

library peridot-emoji-reporter

An emoji reporter for the Peridot testing framework

image

ryanplasma/peridot-emoji-reporter

An emoji reporter for the Peridot testing framework

  • Monday, May 1, 2017
  • by ryanplasma
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Peridot Emoji Reporter Build Status codecov

Derived from Peridot Dot Reporter, (*1)

Peridot emoji reporter, (*2)

Requirements:

  • PHP 7+
  • Terminal that supports emojis - i.e. iTerm2

Usage

I recommend installing the reporter to your project via composer:, (*3)

$ composer require --dev ryanplasma/peridot-emoji-reporter:~1.0

You can register the reporter via your peridot.php file., (*4)

<?php

use Evenement\EventEmitterInterface;
use Peridot\Reporter\Emoji\EmojiReporter;
use Peridot\Reporter\Emoji\EmojiReporterPlugin;
use Spatie\Emoji\Emoji;

return function(EventEmitterInterface $emitter) {
    (new EmojiReporterPlugin($emitter))->register();

    $emitter->on('emoji.start', function (EmojiReporter $reporter) {
        // The next 3 lines are optional - use them to change the default emojis
        $reporter->setPassEmoji(Emoji::smilingCatFaceWithHeartShapedEyes());
        $reporter->setFailEmoji(Emoji::noEntry());
        $reporter->setPendingEmoji(Emoji::alienMonster());
    });
};

Default Emojis are: * :pizza: for passing tests * :poop: for failing tests * :hear_no_evil: for pending tests, (*5)

See above example for how to customize what emojis are used., (*6)

Running reporter tests

You can run the reporter specs and also preview the reporter in action like so:, (*7)

$ vendor/bin/peridot specs/ -r emoji

The Versions

01/05 2017

dev-master

9999999-dev

An emoji reporter for the Peridot testing framework

  Sources   Download

MIT

The Requires

 

The Development Requires

01/05 2017
29/04 2017

v1.0.1

1.0.1.0

An emoji reporter for the Peridot testing framework

  Sources   Download

MIT

The Requires

 

The Development Requires

28/04 2017

v1.0.0

1.0.0.0

An emoji reporter for the Peridot testing framework

  Sources   Download

MIT

The Requires

 

The Development Requires