Java 修复一个Cucumber runner找不到Junit 5测试错误eclipse?
我正在运行一些cumber功能文件 在eclipse中,当我单独运行一个功能文件时,它可以工作。 但是当我尝试运行Cucumber runner类时,得到的错误消息是 “未找到JUint5的测试” 重新启动eclipse或清理项目后,问题仍然存在 它返回java.lang.ClassNotFoundException:org.junit.platform.commons.PremissionViolationExceptionJava 修复一个Cucumber runner找不到Junit 5测试错误eclipse?,java,cucumber,junit5,Java,Cucumber,Junit5,我正在运行一些cumber功能文件 在eclipse中,当我单独运行一个功能文件时,它可以工作。 但是当我尝试运行Cucumber runner类时,得到的错误消息是 “未找到JUint5的测试” 重新启动eclipse或清理项目后,问题仍然存在 它返回java.lang.ClassNotFoundException:org.junit.platform.commons.PremissionViolationException @RunWith(Cucumber.class) @Cucumber
@RunWith(Cucumber.class)
@CucumberOptions(
features = "path/to/features"
,glue={"com.pathto.steps"}
)
public class TestRunner {
}
有什么办法解决吗
它运行在spring启动应用程序的test目录中
@RunWith(Cucumber.class)
仅是JUnit4。因此,您必须寻找Junit 5或Junit平台支持,据我所知,这项工作正在进行中,但我不知道是否已经完成。或者,您可以包括JUnit Vintage(即JUnit 4对JUnit平台的支持),并使用@RunWith(Cucumber.class)
。您找到了解决方案吗?