DevOps / Maven Surefire Plugin Interview Questions
What is the Maven Surefire Plugin?
The Surefire Plugin is Maven's standard plugin for executing unit tests during the build. It runs automatically in the test phase, invokes JUnit or TestNG tests found on the classpath, and writes results to target/surefire-reports in both plain-text and XML form.
If any test fails, Surefire fails the build by default, which is why it's the gatekeeper most teams rely on before a jar or war ever gets packaged.
More Related questions...