-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Exit with non-zero code if no file/directory to test was found #4519
Comments
Duplicate of #4493. |
@sebastianbergmann can you please advise why I am getting the following error:
when I use dev phpunit downloaded by:
I think this error must be in phpunit, tested with this minimalistic configuration and one simple test:
thanks in advance. PS: with 09ba0b8 commit it works, with 60890a4 (used above) it does not even CI here is green |
I would not call a setup that includes a PHPUnit extension ( |
PHPUnit 9.4 has a |
thanks! |
Thank you @sebastianbergmann for explaining the fix. johnkary/phpunit-speedtrap listener has been updated to address this issue. Thank you for your continued efforts on PHPUnit and within the PHP community :) |
(opening as a feature request, even it looks like a bug to me)
This is a feature request to exit phpunit with non-zero status code if no file to test was found.
Currently, phpunit exits with zero status code which is dangerous, as tests passes even if data directory with tests is completely missing.
Example config (phpunit passes even if
tests
directory does not exist):The text was updated successfully, but these errors were encountered: