Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse java不生成步骤骨架_Eclipse_Cucumber Jvm - Fatal编程技术网

Eclipse java不生成步骤骨架

Eclipse java不生成步骤骨架,eclipse,cucumber-jvm,Eclipse,Cucumber Jvm,在EclipseJuno中运行 @RunWith(Cucumber.class) @Cucumber.Options(format={"pretty", "html:target/cucumber"}) public class RunTests { } 在控制台窗口中,我看到: Feature: Depositing money Scenario: Sunny day [90m# deposit.feature:3[0m Given: I have an Account with a ba

在EclipseJuno中运行

@RunWith(Cucumber.class)
@Cucumber.Options(format={"pretty", "html:target/cucumber"})
public class RunTests {
}
在控制台窗口中,我看到:

Feature: Depositing money

Scenario: Sunny day [90m# deposit.feature:3[0m
Given: I have an Account with a balance of $100
When: I deposit $20
Then: The Account balance should be $120
问:90米和3米是关于什么的

在target/cumber/index.html中,我看到:

Feature: Depositing money
Scenario: Sunny day
Given: I have an Account with a balance of $100 
When: I deposit $20 
Then: The Account balance should be $120

我假设如果我在一个没有步骤定义的新功能上运行测试,cucumber jvm会为我可以从控制台窗口复制到java文件中的步骤吐出框架定义。这不是工作原理吗?

cucumber应该在控制台窗口中提供步骤定义框架。您尝试过吗从你的终端运行它们

问:90米和3米是关于什么的


这些是编码以提供颜色。可能是因为您使用了PrettyFormatter。

Cucumber应在控制台窗口中提供步骤定义框架。您是否尝试从终端运行它们

问:90米和3米是关于什么的


这些编码是为了提供颜色。可能是因为您使用了PrettyFormatter。

如果您使用选项--monochy'运行,您将不会得到奇怪的格式设置
[90m#存款。功能:3[0m

您可以在@CucumberOptions中将此设置为单色=true,或者在命令行中使用
--monochrone

如果您使用选项“---monochrone”运行,您将不会获得奇怪的格式设置
[90m#存款。功能:3[0m

您可以在@CucumberOptions中使用单色=true或在命令行中使用
--monochroine

设置此选项。您是否能够生成代码段,如果能够,如何生成?(我在此处没有看到该信息)您是否能够生成代码段,如果能够,如何生成?(我在此处没有看到该信息)