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 · 0 comments
Open

Allow running slow tests in CLI #583

yoannblot opened this issue Jul 10, 2024 · 0 comments

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 ?
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

1 participant