我已经配置了Cucumber Maven项目并在执行RunTest.java文件时出现Initialization错误:
package annotation;
import org.junit.runner.RunWith;
import cucumber.junit.Cucumber;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber"})
public class RunTest { }
我也包含了hamcrest-library文件,但我仍然不知道我遗漏了什么。
答案 0 :(得分:0)
请改用以下代码......
df[complete.cases(df),]
两个package annotation;
import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
import cucumber.api.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(plugin = { "pretty", "html:target/cucumber" })
public class RunTest {
}
错了。 import statements
不正确Cucumber.Options
。格式现已弃用,请使用插件。