gpt4 book ai didi

java - Eclipse 在报告生成中忽略 CucumberOptions

转载 作者:太空宇宙 更新时间:2023-11-04 10:59:37 24 4
gpt4 key购买 nike

我在尝试使用 Eclipse (Neon 3) 生成报告时遇到意外问题。我使用的是 NoraUi V2.x.x,它是 Selenium、Cucumber 等的组合。

正如您在[下面附上的屏幕截图]中看到的,我已将以下内容添加到我的类(class)中:

@CucumberOptions(monochrome = true, glue = { "noraui.application.steps", 
"noraui.browser.steps", "com.soprasteria.cdk.ACEWS.application.steps.ACEWS"},
plugin = { "html:target/reports/html", "junit:target/reports/junit/cucumber.xml", "json:target/reports/json/cucumber.json" },
features = { "src/test/resources" })

但是,在我执行结束时,Eclipse 说:

[INFO] --- maven-antrun-plugin:1.7:run (copy-gherkin-formatter-file) @ ACEWS ---
[INFO] Executing tasks
copy:[copy] Copying 1 file to D:\Profiles\rdesplats\workspace\ACEWS\target\reports\html

但是没有生成json文件或xml文件。有没有人已经遇到过这个问题并且知道如何解决这个问题?

我附上的屏幕截图

Screen Shot

非常感谢,

拉玛

最佳答案

您必须在 pom.xml 文件中启用 Cucumber 报告 as described here .

关于java - Eclipse 在报告生成中忽略 CucumberOptions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47033246/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com