DevOps / Maven Surefire Plugin Interview Questions
How does Surefire integrate with JaCoCo for code coverage?
JaCoCo works by injecting a Java agent into the JVM under test. Running jacoco:prepare-agent sets the argLine property with the agent's -javaagent flag, and Surefire automatically picks that property up when it forks the test JVM — no direct link between the two plugins beyond that shared property.
More Related questions...