phpunit-slow-test-detector
phpunit-slow-test-detector copied to clipboard
Allow running slow tests in CLI
Context
I would like to use slow-test-detector in a CI, like GitHub Actions.
In my phpunit.xml file, I have different testsuites (unit, integration...).
Each testsuite should have a different configuration.
We can not use the <extension> parameters to do it.
Expected Result
- Could it be possible to run it in CLI with args, like?
php vendor/bin/phpunit --configuration phpunit.xml --testsuite=unit --slow-test-detector-maximum-duration=20
- Can the result fails when at least 1 test does not respect the condition ?
The title uses word "allow". This library is a detector, is never terminates any tests, it only list the most slow ones.