sonarqube - Sonar-Overall Coverage -
sonar gives value of overall coverage combination of line , branch coverage. not sure how important metric. value of overall coverage signifies? how better line , branch coverage? suggestions helpful.
from sonar's documentation:
it mix of line coverage , condition coverage. goal provide more accurate answer following question: how of source code has been covered unit tests?
coverage = (ct + cf + lc)/(2*b + el) ct = conditions have been evaluated 'true' @ least once cf = conditions have been evaluated 'false' @ least once lc = covered lines = lines_to_cover - uncovered_lines b = total number of conditions el = total number of executable lines (lines_to_cover)
source: http://docs.sonarqube.org/display/sonar/metric+definitions (captured 23/02/2015)
Comments
Post a Comment