【问题标题】:Can I get a quality gate to fail if mutation coverage is not high enough?如果突变覆盖率不够高,我可以让质量门失败吗?
【发布时间】:2017-07-11 10:58:31
【问题描述】:

我们使用默认的“SonarQube way”质量门,它有一个“突变覆盖”设置,但这似乎不会导致门失败。

例如,我有一个小型测试项目,它没有足够的变异覆盖率,并将其报告为代码异味:

3 more mutants need to be covered by unit tests to reach the minimum threshold of 65% mutant coverage

这来自 FindBugs 质量配置文件。是否也有可能通过质量关卡?

【问题讨论】:

    标签: sonarqube code-coverage mutation-testing


    【解决方案1】:

    您必须通过添加一条规则来修改质量门(SonarQube 方式),如果 Mutation 覆盖率“小于”65,则该错误(或警告)

    【讨论】:

      猜你喜欢
      • 2016-03-02
      • 1970-01-01
      • 2014-07-03
      • 2017-07-05
      • 2015-11-27
      • 2016-04-12
      • 2018-11-17
      • 2019-07-20
      • 2016-12-23
      相关资源
      最近更新 更多