Skip to content

tkgregory/sonarqube-jacoco-code-coverage

Repository files navigation

CI

Repository to accompany article How To Test Code Coverage Using SonarQube and Jacoco.

Pre-requisites

  • JDK 8+
  • Docker

Running

Running SonarQube

./gradlew composeUp

This will run SonarQube at locahost:9000. The default login is admin/admin, then you will need to set a new password.

Running a SonarQube scan

Wait for SonarQube to start, then run:

./gradlew sonarqube

Stopping

./gradlew composeDown

SonarQube version

This example runs against the lts version of SonarQube (currently SonarQube 8.9).

Need further support?

Contact me if you need help at tom@tomgregory.com.

About

Accompanying repo to tutorial on how to apply the Jacoco plugin to your project and run a SonarQube scan to generate a code coverage report

Topics

Resources

Stars

Watchers

Forks

Languages