我只想在 cucumber html 报告中打印失败的场景
i want to print only failed scenarios in cucumber html reports
是否可以只在 cucumber-html-报告中打印失败的场景,即如果我有 10 个场景,其中 2 个失败,那么我想要一个关于这 2 个失败场景的报告。
我是否必须更改 pom.xml 中的任何依赖项?
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>3.8.0</version>
<scope>test</scope>
</dependency>
如果您注意到 cucumber html 报告,它们有 4 种不同的测试结果执行表示,
基于,
- 特点
- 标签
- 步骤
- 失败
如果您只想要失败的报告,您可以使用报告中的 overview-failures.html
。
请在您的 cucumber-html-reports
目录中查找 overview-failures.html
。看看是否符合您的需要。
是否可以只在 cucumber-html-报告中打印失败的场景,即如果我有 10 个场景,其中 2 个失败,那么我想要一个关于这 2 个失败场景的报告。
我是否必须更改 pom.xml 中的任何依赖项?
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>3.8.0</version>
<scope>test</scope>
</dependency>
如果您注意到 cucumber html 报告,它们有 4 种不同的测试结果执行表示,
基于,
- 特点
- 标签
- 步骤
- 失败
如果您只想要失败的报告,您可以使用报告中的 overview-failures.html
。
请在您的 cucumber-html-reports
目录中查找 overview-failures.html
。看看是否符合您的需要。