DevOps / Maven Surefire Plugin Interview Questions
How do you set a timeout so a hung test doesn't block the build forever?
Use <forkedProcessTimeoutInSeconds>. If the forked JVM running the tests exceeds this duration, Surefire kills it and fails the build, which is useful for catching infinite loops or deadlocks that would otherwise hang a CI agent indefinitely.
More Related questions...