I know what the difference is between line and branch coverage, but what is the difference between code coverage and line coverage? Is the former instruction coverage?
相关问题
- 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
Coverage is a subtle ;-) mix of the line and the branch coverage.
You can find the formula on our metric description page:
To expand on the answer, you can only query sonar for these terms:
And then you can covert to the terms above using these equations:
You can use the Sonar Drilldown or REST API to get the metric values above:
This blog post has additional information: http://sizustech.blogspot.com/2015/10/making-sense-of-sonar-qube-stats-like.html