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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -