DevOps / Maven Surefire Plugin Interview Questions
How do you run only tests with a specific JUnit 5 tag or TestNG group?
Use <groups> and <excludedGroups>:
<configuration> <groups>fast</groups> <excludedGroups>slow</excludedGroups> </configuration>
This maps to JUnit 5's @Tag annotation, or to TestNG's groups attribute when TestNG is the underlying framework.
More Related questions...