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

Running an empty test shows help screen #5192

Closed
localheinz opened this issue Feb 10, 2023 · 0 comments
Closed

Running an empty test shows help screen #5192

localheinz opened this issue Feb 10, 2023 · 0 comments
Assignees
Labels
feature/test-runner CLI test runner type/bug Something is broken version/10 Something affects PHPUnit 10

Comments

@localheinz
Copy link
Collaborator

localheinz commented Feb 10, 2023

Q A
PHPUnit version 10.0.7
PHP version 8.1.4
Installation Method Composer

Summary

After upgrading from phpunit/phpunit:9.6.3 to phpunit/phpunit:10.0.7 running phpunit with a phpunit.xml that points to a directory that does not contain any tests succeeds, but shows the help screen.

Current behavior

Running phpunit with a phpunit.xml that points to a directory that does not contain any tests succeeds, but shows the help screen.

How to reproduce

See ergebnis/symfony-application-template#1544, and give me a few moments to open a pull request.

Expected behavior

Running phpunit with a phpunit.xml that points to a directory that does not contain any tests succeeds with warnings.

@localheinz localheinz added the type/bug Something is broken label Feb 10, 2023
@localheinz localheinz self-assigned this Feb 10, 2023
@sebastianbergmann sebastianbergmann added feature/test-runner CLI test runner version/10 Something affects PHPUnit 10 labels Feb 10, 2023
@localheinz localheinz changed the title Running an empty test suite fails with help screen Running an empty test shows help screen Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-runner CLI test runner type/bug Something is broken version/10 Something affects PHPUnit 10
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants