Cucumber 我只想在html报告中打印失败的场景

Cucumber 我只想在html报告中打印失败的场景,cucumber,karate,Cucumber,Karate,是否可以只在html报告中打印失败的场景,即如果我有10个场景,其中2个失败,那么我需要这2个失败场景的报告 我是否必须更改pom.xml中的依赖项 <dependency> <groupId>net.masterthought</groupId> <artifactId>cucumber-reporting</artifactId> <ver

是否可以只在html报告中打印失败的场景,即如果我有10个场景,其中2个失败,那么我需要这2个失败场景的报告

我是否必须更改pom.xml中的依赖项

        <dependency>
            <groupId>net.masterthought</groupId>
            <artifactId>cucumber-reporting</artifactId>
            <version>3.8.0</version>
            <scope>test</scope>
        </dependency>

网络智囊团
黄瓜报道
3.8.0
测试

如果您注意到html报告,它们有4种不同的测试结果执行表示形式

基于

  • 特征
  • 标签
  • 台阶
  • 失败
  • 如果您只想要失败的报告,您可以使用报告中的
    overview failures.html


    请在
    cucumber html报告
    目录中查找
    overview failures.html
    。看看这是否符合您的需要。

    有没有办法让您的步骤更简单?我目前看到的报告包含失败的方法(粘合代码),但没有失败的步骤。