jakobbuis / simple-slow-test-reporter
Reports slow tests in your PHPUnit testsuite
Installs: 320 679
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2023-11-26 22:59:47 UTC
README
Reports slow tests in your PHPUnit testsuite
Requirements
Requires PHPUnit 9.0+
Installation
Add the reporter as a dev dependency:
composer require --dev jakobbuis/simple-slow-test-reporter
Add the extension to your phpunit.xml
file as a root-node:
<phpunit> [...] <extensions> <extension class="SSTR\SlowTestReporter" /> </extensions> </phpunit>
The default threshold for slow tests is 500 milliseconds. You can configure the limit in the extension:
<phpunit> [...] <extensions> <extension class="SSTR\SlowTestReporter"> <arguments> <integer>1000</integer> </arguments> </extension> </extensions> </phpunit>
License
MIT