GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Issue with custom JUnit 5 Engine and Surefire Reporting · Issue #837 · apache/maven-surefire Closed DescriptionAffected version3.0.0-M4 and later Bug descriptionI have written a custom JUnit 5 engine to help me run ArchUnit tests across my projects using a common set of rules. Up until version 3.0.0-M3, this engine worked with no issues and reported failures normally like any regular test case as you'd expect. However starting in 3.0.0-M4 and later Surefire no longer reports test case failures from my custom engine. For example, I would call: TestExecutionResult.failed(error) in my failure path and this should fail, however my mvn test command will finish with a success status. The only solution I've found is to either:
Attached above is a minimal set of projects that replicate the issue. "test-custom-junit-engine" is a very simple custom JUnit engine that simply has one test that always fails. "test-project-engine" is used to run the "mvn test" command. I've left the working Surefire plugin configuration commented out. You can run mvn test as is and see that no errors are reported, however if you change the Surefire version to 3.0.0-M3 and re-run mvn test, the test failure is properly reported. I'm hoping there is something basic I am missing here, however given that it used to work I'm a bit skeptical. Please point me in the right direction if I'm doing something incorrect. Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |