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

JUnit: report Risky test consistently as an error #4438

Merged
merged 1 commit into from Aug 26, 2020
Merged

JUnit: report Risky test consistently as an error #4438

merged 1 commit into from Aug 26, 2020

Conversation

Slamdunk
Copy link
Contributor

Close #3937

@sebastianbergmann
Copy link
Owner

Have you seen #3913 (comment)? Is your change compatible with Jenkins, etc.? In other words: are you sure this has no unintended side effects?

@Slamdunk
Copy link
Contributor Author

Are you sure this has no unintended side effects?

If you are asking me to bet my kids' lifes, no.
But I'm altering only the content of the XML tag, which is by that XSD definition a free string.
Until #4321 gets implemented, this PR is essential for ParaTest because, as of yet, we get zero information about the failure otherwise:

There were 3 errors:

1) Risky Test

2) ParaTest\Tests\fixtures\failing_tests\UnitTestWithErrorTest::testTruth
RuntimeException: Error!!!

./paratest/test/fixtures/failing_tests/UnitTestWithErrorTest.php:21

3) Risky Test

May I ask you how to fix the errors reported in CI?

-    <testcase name="testWarning" class="PHPUnit\SelfTest\Basic\StatusTest" classname="PHPUnit.SelfTest.Basic.StatusTest" file="%s%eStatusTest.php" line="%d" assertions="0" time="%f">
+    <testcase name="testWarning" class="PHPUnit\SelfTest\Basic\StatusTest" classname="PHPUnit.SelfTest.Basic.StatusTest" file="/home/runner/work/phpunit/phpunit/tests/basic/unit/StatusTest.php" line="57" assertions="0" time="0.000091">

I have honestly no idea what's going on in these test results 😕

@sebastianbergmann
Copy link
Owner

If you are asking me to bet my kids' lifes, no.
But I'm altering only the content of the XML tag, which is by that XSD definition a free string.

Okay.

I have honestly no idea what's going on in these test results 😕

Me neither, I'll have a look ASAP.

@sebastianbergmann sebastianbergmann added feature/logging Issues related to logging test results feature/test-runner CLI test runner type/bug Something is broken labels Aug 26, 2020
@sebastianbergmann sebastianbergmann self-assigned this Aug 26, 2020
@sebastianbergmann sebastianbergmann merged commit 14110cc into sebastianbergmann:9.3 Aug 26, 2020
@Slamdunk Slamdunk deleted the junit_risky_tests branch August 26, 2020 13:50
@sebastianbergmann
Copy link
Owner

sigh, the tests are still failing on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/logging Issues related to logging test results feature/test-runner CLI test runner type/bug Something is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants