paratest: No info on failing / risky tests
PHPunit now distincts between errors and failures. When we have failures the suite exits with status != 0 as expected but we dont get any clue on the problem.
./vendor/bin/paratest
Running phpunit in 5 processes with /home/jean/projects/compufacil/Backend/vendor/bin/phpunit
Configuration read from /home/jean/projects/compufacil/Backend/phpunit.xml.dist
.........................................S.............SS.... 61 / 1534 ( 3%)
.....S............SSS.........................S.............. 122 / 1534 ( 7%)
........................................SSSSSSSSS............ 183 / 1534 ( 11%)
..........S.................................................. 244 / 1534 ( 15%)
.............................................SSSSSS.......... 305 / 1544 ( 19%)
............................................................. 366 / 1545 ( 23%)
............................................................. 427 / 1545 ( 27%)
...............SS............................................ 488 / 1545 ( 31%)
.............................................SSS.........S... 549 / 1545 ( 35%)
............................................................. 610 / 1545 ( 39%)
............................................................. 671 / 1547 ( 43%)
............................................................. 732 / 1547 ( 47%)
..........................S......S........................... 793 / 1554 ( 51%)
.........S..............=..................................... 854 / 1556 ( 54%)
............................................................. 915 / 1556 ( 58%)
......SSS.........S..........SSSSSSSSSS...................... 976 / 1556 ( 62%)
............................................................. 1037 / 1557 ( 66%)
......S...................................................... 1098 / 1562 ( 70%)
............................................................. 1159 / 1576 ( 73%)
............................................................. 1220 / 1613 ( 75%)
............................................................. 1281 / 1616 ( 79%)
............................................................. 1342 / 1621 ( 82%)
............................................................. 1403 / 1621 ( 86%)
.....S..............................SSSSS.................... 1464 / 1621 ( 90%)
...........................S.........SSSSSSSSS............... 1525 / 1621 ( 94%)
..............................................S.............. 1586 / 1623 ( 97%)
.................S...................
Time: 1.08 minutes, Memory: 48.00MB
FAILURES!
Tests: 1623, Assertions: 3900, Failures: 1, Errors: 0.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 30 (11 by maintainers)
Fixed in master:
That’s correct, because until the end they cannot be distinguished by errors due to a JUnit XML schema.
By
now risky tests are reported correctly in ParaTest too
I meant that now they are verbose and you can debug them.Good news: https://github.com/sebastianbergmann/phpunit/pull/4438 has been merged, and together with https://github.com/paratestphp/paratest/pull/523 now risky tests are reported correctly in ParaTest too:
@andreasschroth we can send you some Mollie swag or stuff from your Amazon wishlist instead, please contact me at willem@mollie.com.
@willemstuursma Thank you for your generous offer. I gave this issue the label “most-upvotes” now (which basically means “often requested for”). I’ll take a look at this once I have some more spare time (but I don’t accept any money 😃 ).
We are willing to sponsor support for Warnings and Risky tests.
I am still having this issue with the latest paratest and PHPUnit 7.3, but for warnings.
PHPUnit gives the warnings:
I’ve faced same issue. Paratest doesn’t show warnings triggered by phpunit. How to reproduce:
Create a test and mock some class with non-existent method.
Run phpunit with default settings. It will show warning:
Trying to configure method "XXX" which cannot be configured because it does not exist, has not been specified, is final, or is static
Run paratest and you will not see a warning.