这几天在用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:

启动就没问题了。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐