【发布时间】:2020-06-30 21:12:38
【问题描述】:
我可以在命令行下运行 junit5 测试或在 eclipse 中作为 Gradle 测试运行;但是在eclipse中以junit运行它就失败了:
java.lang.NoClassDefFoundError: org/junit/platform/commons/PreconditionViolationException 在 org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.createUnfilteredTest(JUnit5TestLoader.java:75)
我在旧的 eclipse 和新的 eclipse 2020-06 (4.16.0) 中看到了这个错误。我错过了什么?
【问题讨论】:
-
有很多事情会导致这种情况。请出示minimal example to reproduce this issue。