-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Junit5 nested test classes run twice #3782
Comments
@mas-chen Please provide a complete reproducer, i.e. including the project's POM etc. |
Sure here is my reproducer test. https://github.com/mas-chen/flink-connector-kafka/blob/b93fc74029a7c88c61ed04dc820fc9f59d554448/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/MasonTest.java Surefire is configured as part of an external project (see parent pom in the root pom) |
Thanks! I debugged the execution. In this case, Maven Surefire sends three separate discovery/execution requests (order is unclear to me, might be dependent on file system):
(1) will cause |
@marcphilipp thanks for the pointers, this helps a lot! I'll try an exclude filter on the nested classes |
Tested with JUnit5
5.9.1
and5.10.2
.Steps to reproduce
And running
mvn -Dtest=MasonTest\* verify -pl flink-connector-kafka
results in the logs:Context
Deliverables
The text was updated successfully, but these errors were encountered: