Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
3.0.0
-
None
-
None
Description
While more classic junit4 tests are executed and reported fine, it seems that tests generated through a custom @RunWith are executed (some logs are produced which can only mean that those tests are indeed executed), but their result does not appear in the Surefire report.
Problem is that it means the build never fail even if one of those tests is actually not passing, we've finally noticed it only after a while...
Downgrading to 2.22.2 make the tests behave as expected.
Note that those test classes are handled properly when adding org.apache.maven.surefire:surefire-junit47 to the surefire plugin's dependencies, but it causes problems with our junit 5 tests, unfortunately, and we have quite a few modules in which both versions of junit are used (in different test classes, of course).