首页 > 解决方案 > 在 Jenkins 中自定义 Cucumber 报告以分隔测试运行

问题描述

我有 Jenkins 工作,通过 Jenkinsfile 定制。有几个阶段:运行测试,重新运行失败的场景,生成黄瓜报告。我想在最终报告中单独运行和重新运行统计信息,如下图所示: 想要

但在我的报告中,所有结果都在一张表中: 实际

用于生成报告的 Jenkinsfile 片段(我使用 cucumber-report 插件):

 cucumber buildStatus: "UNSTABLE",
          jsonReportDirectory: 'target',
          trendsLimit: 7,
          skipEmptyJSONFiles: true,
          mergeFeaturesWithRetest: true,
          mergeFeaturesById: true,
          stopBuildOnFailedReport: false

你有什么建议吗?谢谢

标签: jenkinscucumber

解决方案


推荐阅读