maven-surefire-plugin

Surefire is not picking up Junit 5 tests

[亡魂溺海] 提交于 2019-11-26 03:53:52
问题 I wrote a simple test method with JUnit 5: public class SimlpeTest { @Test @DisplayName(\"Some description\") void methodName() { // Testing logic for subject under test } } But when I run mvn test , I got: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running SimlpeTest Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 Somehow,