Warm tip: This article is reproduced from serverfault.com, please click

java-如何查找CucumberOptions的可能值(插件= ...)

(java - How to find the possible values for CucumberOptions (plugin = ...))

发布于 2020-12-06 16:43:16

我在这里找到了另一个标题相似的问题42878832,但没有回答我的问题。

我正在运行Cucumber,并希望通过指定来自定义我的TestRunner CucumberOptions我想将值添加到该plugin选项,并在下面的示例中将其指定progress为允许值之一。当我运行代码时,我看不到它会产生预期的输出,.P-因此我想我今天使用的版本可能不再支持此功能。我正在使用Intellij(2020.2),Java(15),cucumber-java(6.8.1)。

有谁知道选项的文档记录在哪里,更具体地说,我在哪里可以阅读该选项的可用选项列表plugin在Cucumber网站上找到了该页面CucumberOptions文档,但是它并不是很有帮助。

我的TestRunner类如下所示。

@RunWith(Cucumber.class) @CucumberOptions(
        features = {"cucumber/features"},
        glue = {"steps"},
        plugin = {"progress", "pretty", "html:Report1"},
        dryRun = false,
        monochrome = true
        //tags = {"@P1"}
        //name = {"Logo"}
        ) public class TestRunner { }
Questioner
robbie70
Viewed
11
user1207289 2020-12-22 03:40:17

你可以在此处找到列出的选项

在javadoc中:

这里

如果你想要一个想法,其中的一些原理,请在这里看看

这里有一个问题,说有关如何使用progress