ryanplasma/peridot-emoji-reporter
Composer 安装命令:
composer require ryanplasma/peridot-emoji-reporter
包简介
An emoji reporter for the Peridot testing framework
README 文档
README
Derived from Peridot Dot Reporter
Requirements:
- PHP 7+
- Terminal that supports emojis - i.e. iTerm2
Usage
I recommend installing the reporter to your project via composer:
$ composer require --dev ryanplasma/peridot-emoji-reporter:~1.0
You can register the reporter via your peridot.php file.
<?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:
- 🍕 for passing tests
- 💩 for failing tests
- 🙉 for pending tests
See above example for how to customize what emojis are used.
Running reporter tests
You can run the reporter specs and also preview the reporter in action like so:
$ vendor/bin/peridot specs/ -r emoji
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-28