DevOps / Maven Surefire Plugin Interview Questions
How do you debug tests that run through Surefire?
mvn -Dmaven.surefire.debug test
This pauses the forked test JVM and opens a debug listener, by default on port 5005, so you can attach a remote debugger from your IDE and step through test execution exactly as Surefire runs it.
More Related questions...