#jacoco #sonarqube #codecoverage
Git Repository - https://github.com/techforum-repo/you...
Setup SonarQube in a Docker Container and Bootstrap the Quality Configurations - • Setup SonarQube in a Docker Container...
Code coverage Report with Jacoco, Maven and SonarQube(Docker)
Code coverage is the percentage of code which is covered by automated tests. many teams use code coverage metric to check the quality of their tests,
Code Coverage is a measurement of how many lines, statements, or blocks of your code are tested using your suite of automated tests.
SonarQube is the leading tool for continuously inspecting the Code Quality and Security of your codebases, and guiding development teams during Code Reviews
Code coverage is an important quality metric that can be imported in SonarQube. The coverage report has to be computed by an external tool first and then SonarQube will be provided with information's coming from this report during the analysis.
Jacoco is an open source toolkit for measuring code coverage in a code base and reporting it through visual reports.
Code coverage is typically measured in percentage values — the closer to 100%, the better.
The code can be covered through various automated tests like unit, integration and functional testing.
The EclEmma plugin can be used in eclipse to quickly generate and review coverage report.
The SonarQube quality gate can be enabled with required code coverage percentage e.g. 75
The Jacoco can enable the aggregated code coverage report and also upload the report to SonarQube server.