-
-
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
The command line argument "--whitelist" has no effect with phpunit 6.4.3. #2844
Comments
I cannot reproduce this:
|
Thanks for testing and responding so quickly. I stripped down my use case to a bare example like yours, and the presence of a simple phpunit.xml file is enough to trigger the problem. My phpunit file is attached (renamed to phpunit.xml.txt so I could upload it here). |
Hi @sebastianbergmann,
(quickly wrote, hoping no script issues) HTH, |
I am now able reproduce the issue with PHPUnit >= 6.1. The issue is not present in PHPUnit 6.0. |
The command line argument "--whitelist" has no effect with phpunit 6.4.3. The exact same command line does work with phpunit 5.5.7.
I am testing code coverage for Moodle (https://github.com/moodle/moodle) with phpunit. My command line is:
vendor/bin/phpunit --coverage-text --whitelist blocks/online_users/ blocks/online_users/tests/online_users_test.php
I get
in the output, and no code coverage information is printed with phpunit 6.4.
The text was updated successfully, but these errors were encountered: