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 coverage signifies? How it is better than line and branch coverage? Any suggestions would be helpful.
相关问题
- Xcode Code Coverage and fopen$UNIX2003
- Is there any means by which I could evaluate the t
- Partial Code Coverage C# - Nunit
- Sonarqube: Squid Rules customization/suppression
- 2 instances of Sonar on same machine
相关文章
- SonarQube: How to suppress a warning in Kotlin cod
- @Nullable and SonarQube 'Conditionally execute
- Skipping JaCoCo execution due to missing execution
- Property 'sonar.jacoco.reportPath' is depr
- This version of OSX is not able to perform the nec
- Is there still no solution for ignoring setter/get
- Please provide compiled classes of your project wi
- Visual studio code coverage from many different un
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.
From Sonar's documentation:
Source: https://docs.sonarqube.org/display/SONAR/Metric+Definitions#MetricDefinitions-Tests