尝试执行功能文件时看到此错误 .
Exception in thread "main" java.lang.NoSuchMethodError: net.thucydides.core.steps.StepEventBus.isBaseStepListenerRegistered()Z
Error when trying to run cucumber class java.lang.NoSuchMethodError: cucumber.runtime.RuntimeOptions.formatter(Ljava/lang/ClassLoader;)Lcucumber/api/formatter/Formatter;
我究竟做错了什么?
1 回答
如果您使用的是IntelliJ和Cucumber v2.x,请升级IntelliJ并尝试卸载/安装Jetbrains Cucumber-for-Java插件 .
使用Cucumber v2.x升级了Cucumber事件模型,最近升级了插件以解决这个问题 .
否则,尝试从运行配置中删除Formatter(由IntelliJ生成)