padraic / phpunit-extensions
Collection of Listeners to log and manipulate test run order
Installs: 171 394
Dependents: 2
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 4
Open Issues: 0
Requires
- php: ^7.0
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2020-08-21 18:52:14 UTC
README
A collection of extensions intended to allow for:
- Timing of test and testsuite execution
- Filter/Reorder test suites using custom filters
Installation
require: { "padraic/phpunit-extensions": "~1.0@dev" }
Configuration
Time Collector Listener
The Time Collector Listener logs timing data on tests and test suites for use by the time dependent filters. You can enable it using the following phpunit.xml snippet showing the listeners XML block.
<listeners> <listener class="\Humbug\Phpunit\Listener\TimeCollectorListener"> <arguments> <object class="\Humbug\Phpunit\Logger\JsonLogger"> <arguments> <string>/path/to/times.json</string> </arguments> </object> </arguments> </listener> </listeners>