phpunit-slow-test-detector icon indicating copy to clipboard operation
phpunit-slow-test-detector copied to clipboard

Allow running slow tests in CLI

Open yoannblot opened this issue 1 year ago • 1 comments

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

  1. 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
  1. Can the result fails when at least 1 test does not respect the condition ?

yoannblot avatar Jul 10 '24 09:07 yoannblot

The title uses word "allow". This library is a detector, is never terminates any tests, it only list the most slow ones.

mvorisek avatar Feb 06 '25 13:02 mvorisek