When I create a test suite the tests are runned twice, once independenly and in suite. [mvn test] #4327
-
| How to solve that problem, that tests that are grouped in suite, only will be runned in suite, not independently? |
Beta Was this translation helpful? Give feedback.
Answered by marcphilipp Feb 21, 2025
Replies: 2 comments 8 replies
-
| One common solution is to use a naming pattern. For example, call all suites |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by sveridovd
-
| I like to add something here and even as what @marcphilipp suggests here "solves" the issue this is not very straight forward/convenient from a users point of view:
So to summarize, it would really be great if JUnit would sort that out without any extra configuration and naming schemes. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
One common solution is to use a naming pattern. For example, call all suites
*Suiteand all tests*Testsand configure Maven Surefire to only include the former.