Cucumber 将junit报告输出到特定的xml文件

Cucumber 将junit报告输出到特定的xml文件,cucumber,cucumber-junit,Cucumber,Cucumber Junit,在我的cucumber.yml文件中,我给出了生成junit报告的以下代码行。目标是在文件report.xml中生成junit报告,但是在执行之后,它将创建名为report.xml的文件夹,并在文件TEST application Feature.xml中生成报告 请告诉我们如何在Junit报告中指定文件名 p3: <%= standard_opts %> --tags @p3 --profile html_report --profile junit_report junit_r

在我的
cucumber.yml
文件中,我给出了生成junit报告的以下代码行。目标是在文件
report.xml
中生成junit报告,但是在执行之后,它将创建名为
report.xml
的文件夹,并在文件
TEST application Feature.xml
中生成报告

请告诉我们如何在Junit报告中指定文件名

p3: <%= standard_opts %> --tags @p3 --profile html_report  --profile junit_report
junit_report: --format junit  --out=report.xml
p3:--tags@p3--profile html\u报告--profile junit\u报告
junit\u report:--格式junit--out=report.xml

将此添加到插件中,您就可以开始了

plugin = {"junit:target/cucumber-results.xml"}

这将为您提供junit报告。

将此添加到您的插件中,您就可以开始了

p3: <%= standard_opts %> --tags @p3 --profile html_report  --profile junit_report
junit_report: --format junit  --out=report.xml
plugin = {"junit:target/cucumber-results.xml"}

这将为您提供一份junit报告。

如果有人知道答案,请告知我们。如果有人知道答案,请告知我们
p3: <%= standard_opts %> --tags @p3 --profile html_report  --profile junit_report
junit_report: --format junit  --out=report.xml