Sonar-Overall Coverage

前端 未结 2 756
礼貌的吻别
礼貌的吻别 2021-01-02 21:45

Sonar gives a value of Overall coverage which is a combination of line and branch coverage. I am not sure how important is this metric. What does the value of overall covera

2条回答
  •  执笔经年
    2021-01-02 22:36

    Here's how the overall coverage is computed: https://docs.sonarqube.org/display/SONAR/Metric+Definitions#MetricDefinitions-Tests

    If branch coverage is lower than line coverage (and thus lower than overall coverage), it means that your unit tests test the main cases but not really the corner cases.

提交回复
热议问题