我只想在黄瓜html报告中打印失败的方案

时间:2019-02-25 05:55:16

标签: cucumber karate

是否有可能仅在cumul-html-reports中打印失败的方案,即如果我有10个方案中有2个失败了,那么我要报告这2个失败的方案。

我是否需要更改pom.xml中的任何依赖项?

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

1 个答案:

答案 0 :(得分:2)

如果您注意到了黄瓜html报告,它们会以4种不同的形式表示测试结果的执行情况,

基于

  1. 功能
  2. 标签
  3. 步骤
  4. 失败

如果只希望失败的报告,则可以使用报告中的overview-failures.html

请在您的overview-failures.html目录中查找cucumber-html-reports。看看是否满足您的需求。

相关问题