code coverage - Where does Sonarqube collects data from? -
last day configuring jenkins job run sonar on java project. had sonar , jacoco plugins configured in job. sonar throwing error sysadmin asked me remove jacoco plugin configuration job. removed , sonar saying cannot find cobertura.xml. curious know if sonar analysis on run jacoco or cobertura task or runs own coverage analysis?
short answer : in general, coverage imported sonarqube reading coverage report generated prior work of sonarqube.
longer answer : historically (read, 2 years ago), sonarqube used try run coverage tool java. nightmare maintain every use cases , such developers provide coverage report sonarqube act on data (linking them source, compute metrics, display them nicely).
in case, means have cobertura plugin installed on sq instance , looking report import.
Comments
Post a Comment