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
Can't exclude tags with Maven Surefire via command line options #1612
Comments
Assuming you're using Surefire 2.22.0, you may exclude tags via For details see https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html |
Yeah, but in this case i have to make two profiles with different exclude/include Tags :( |
That's how Maven/Surefire works. Perhaps StackOverflow is a better place to ask Surefire configuration/setup related questions. Their might be a solution to your task. :) |
Have you tried using a tag expression instead of just simple tags? |
Closing this issue since the JUnit team no longer maintains the Maven Surefire provider. |
Yep, it's solution, thnx |
You're welcome. Glad that works for you! And thanks for letting us know. |
I have the same issue and just specifying |
Putting in single quotes works for me: |
I'm trying to exclude a tag from test execution with Java system props that are passed via the command line, but it's not working.
$: mvn clean test -Dtest="**/selftest/**" -DexcludeTags="NotThreadSafe"
Output:
But
-Dgroups
propery works fine:$: mvn clean test -Dtest="**/cdp/autotests/selftest/**" -Dgroups="NotThreadSafe"
Output:
The text was updated successfully, but these errors were encountered: