SonarQube
How to Measure Code Coverage Using SonarQube and Jacoco By Tom Gregory Posted on December 13, 2019 Last Updated on November 7, 2022 Code coverage is a metric that teams use to measure the quality of their tests, and it represents the percentage of production code that has been tested. Discover how to apply the Gradle Jacoco plugin to your project and run a SonarQube scan to generate a code coverage report. Contents 1. Overview 2. A worked example 3. Setting up a SonarQube instance 4. Using the Jacoco Gradle plugin 5. Using the SonarQube Gradle plugin 6. Viewing the SonarQube report details 7. SonarQube 9 8. Conclusion 9. Resources UPDATED in November 2021 to reflect SonarQube LTS version switching to 8.9. 1. Overview SonarQube is a tool which aims to improve the quality of your code using static analysis techniques to report: code coverage bugs code smells security vulnerabilities The SonarQube server is a standalone service which allows you to...