[deprecated] Use `recoil/dev` instead.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
test
.gitattributes
.gitignore
.php_cs
.travis.yml
CHANGELOG.md
LICENSE.md
Makefile
README.md
composer.json
composer.lock
peridot.php

README.md

Recoil Peridot Extension

Build Status Code Coverage Latest Version

A Peridot extension that executes tests as Recoil coroutines.

composer require --sort-packages --dev recoil/peridot

Usage

Simply return a new instance of Recoil\Peridot\RecoilTestExecutor in your Peridot configuration file.

use Recoil\Peridot\RecoilTestExecutor;

require __DIR__ . '/../vendor/autoload.php';

return new RecoilTestExecutor();

You can then use PHP generators as coroutines in your beforeEach, afterEach and test functions.

Building and testing

Please see CONTRIBUTING.md for information about running the tests and submitting changes.