Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
SonarQube version used: 7.9
Scanner used: Maven based
Plugins used: jacoco-maven-plugin 0.8.4, Maven surefire 3.0.0, Maven failsafe 3.0.0
Trying to achieve: Code coverage through Integration tests for web services
Status so far:
- Web service dev code is written in Node Js
- Automation scripts are written in Java
- Jacoco plugin is integrated, code coverage information populated on SonarQube as a feed from Jacoco-it.exec as part of automation scripts execution flow.
As per SonarQube documentation,
Code coverage = Unit test coverage + Integration Test Coverage
We are not expected to work on Unit tests, so
Code coverage = Integration Test Coverage
Is this code coverage information valid? From one of the forums I referred to, it seems the integration test coverage will be covering flows at module to module level, not at the code line level. Also, this may not be referring to the dev code as its written in Javascript.
As per my understanding Lcov file is the one which gives line coverage information. This will be extracted only when we go for Unit tests.
In case I am wrong here, should I be looking for an alternative plugin for code coverage? please suggest.