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.
Replies: 2 comments
-
One common solution is to use a naming pattern. For example, call all suites |
Beta Was this translation helpful? Give feedback.
-
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.
One common solution is to use a naming pattern. For example, call all suites
*Suite
and all tests*Tests
and configure Maven Surefire to only include the former.