Maven surefire reruns successful tests when JUnitPlatformProvider used #4480
-
Hello! maven.surefire.version > 3.1.2 We were using Junit 4 in our project. Then we decided to move to Junit 5 version, but there are still many Junit 4 tests in our project. We are using maven surefire to run tests. Since we've migrated to Junit 5, surefire is using org.apache.maven.surefire.junitplatform.JUnitPlatformProvider to run tests. It was org.apache.maven.surefire.junit4.JUnit4Provider The thing is - now when I'm running tests with rerunFailingTestsCount
if whole test class fails (in @afterclass for example) - surefire reruns all test class, even successful test methods. With JUnitPlatformProvider:
With JUnit4Provider:
I've prepared sample project where this behaviour can be reproduced - https://github.com/Yahmus/JunitProviderTest
to maven-surefire-plugin in pom.xml and run the test class again. I've found a little bit similar issue but it doesn't really help #4026 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Since that's implemented in Surefire, please raise an issue in their issue tracker. |
Beta Was this translation helpful? Give feedback.
Since that's implemented in Surefire, please raise an issue in their issue tracker.