DevOps / Maven Surefire Plugin Interview Questions
How does Surefire distinguish a test failure from a test error?
A failure is a failed assertion — an AssertionError from JUnit or AssertJ, meaning the test ran but the expected condition wasn't met. An error is any other uncaught exception, such as a NullPointerException, meaning something broke unexpectedly before the assertion was even reached.
More Related questions...