DevOps / Maven Surefire Plugin Interview Questions
What's the difference between excludes and excludedGroups?
| excludes | excludedGroups |
| Matches file/class name patterns | Matches tags, groups, or categories defined in the test code |
Example: **/*SlowTest.java | Example: JUnit 5 @Tag("slow"), TestNG groups |
Use excludes when naming conventions already separate the tests you want to skip, and excludedGroups when the distinction lives in annotations rather than file names.
More Related questions...