Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running slow tests in CLI #583

Open
yoannblot opened this issue Jul 10, 2024 · 1 comment
Open

Allow running slow tests in CLI #583

yoannblot opened this issue Jul 10, 2024 · 1 comment

Comments

@yoannblot
Copy link

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 ?
@mvorisek
Copy link
Contributor

mvorisek commented Feb 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants