This repository is now archived because the bug has been fixed.
Minimal repository to demonstrate bug SUREFIRE-1851. This shows that throwing odd errors (for example, if they are mocked) can break the Maven test runner, resulting in false positive results.
Simply clone and run mvn test
. You can also see the result of this in GitHub Actions.
ExampleTest.aFailingTest()
should fail, which should cause the mvn test
command to fail. However, due to a bug (tracked by SUREFIRE-1851) this failing test breaks the runner, and Maven reports that all tests were successful 😬