-
-
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
Test Runner does not display test runner warnings when TestDox result printer is used #5172
Comments
Your XML configuration file does not conform to PHPUnit 10's schema: the Here is the event log for the reproducing example:
The bug here is that the test runner does not report warnings, for instance those triggered by the XML configuration file loader, when TestDox output is used ( |
v10
even with displayDetailsOnTestsThatTriggerWarnings="true"
Indeed, sorry, I hadn't paid enough attention to these specific changes during the migration!
My problem is solved, but we leave the issue open because the bug I found is actually a bug with the warning reports, right? |
Right. I have fixed the issue locally, but before I commit/push the fix I will need to implement a regression test. I'll do that first thing tomorrow. |
Take the time you need, thanks for your fast help! |
@sebastianbergmann By the way, i think the v10 documentation should be updated: https://phpunit.readthedocs.io/en/10.0/configuration.html#the-logging-element. Because the two removed elements are still used in the example. I warn, in case it is not planned. |
I did not have the time yet to update the entire documentation. This is work for the next weekends ... |
Summary
I've just migrated to
v10.0.4
and since then, an invisible warning appears when it was not there before. I tried to set the new settingdisplayDetailsOnTestsThatTriggerWarnings="true"
in the XML file, but it doesn't change anything. It worked fine underv9.6.3
.Similar issue: #5136
Current behavior
A ghost warning appears since
v10.0.4
. See thecmd
part:How to reproduce
composer.json
:phpunit.xml.dist
:src/Test/FooTest.php
:Expected behavior
No warning appears in
v9.6.3
. See thecmd
part:The text was updated successfully, but these errors were encountered: