Cucumber在JAVA项目中生成输出需要哪些设置?
我刚刚建立了一个JAVA项目,它有一些非常基本的特性,只涉及一些打印语句 我的CucumberRunner类的代码是:Cucumber在JAVA项目中生成输出需要哪些设置?,java,cucumber,bdd,Java,Cucumber,Bdd,我刚刚建立了一个JAVA项目,它有一些非常基本的特性,只涉及一些打印语句 我的CucumberRunner类的代码是: package com.check.cucumber; import org.junit.runner.RunWith; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @Cucumber.Options( format={"pretty","json:output/"},
package com.check.cucumber;
import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@Cucumber.Options(
format={"pretty","json:output/"},
features={"src/com/check/features"}
)
public class CucumberRunner {
}
当我把这个项目作为Cucumber特性运行时,我得到的特性是在STDOUT中传递的,但是我没有得到任何JSON输出
我的项目中目前只有3个文件:CucumberRunner类、StepDefinition类和一个功能文件(以及必需的jar文件)
我是否需要在构建路径中添加一些内容以获得输出
几小时前我刚开始使用cucumber。我对它很陌生。你应该尝试删除圆点的“@CucumberOptions”你应该尝试删除圆点的“@CucumberOptions”,并在输出前输入“/”。Hanks删除圆点,我将此作为一个答案发布,所以请接受它