org.junit.platform.commons.JUnitException: TestEngine with ID ‘junit-jupiter‘ failed to discover tes
·
这几天在用Springboot测试用例时报错org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests,这个原因主要是idea 测试用例启动配置时错误造成。

我们在启动用例时Shorten command line会自动设置为@argfile(java 9+),这时候启动就会报错:

把@argfile(java 9+)改成JAR manifest:

启动就没问题了。

更多推荐
所有评论(0)