Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebastianhaeni/springboot-maven-jacoco-sonarqube-example

A demo project to show how to generate a test coverage report and send that to SonarQube.
https://github.com/sebastianhaeni/springboot-maven-jacoco-sonarqube-example

Last synced: about 12 hours ago
JSON representation

A demo project to show how to generate a test coverage report and send that to SonarQube.

Awesome Lists containing this project

README

        

# Example Springboot Project + Jacoco Coverage + SonarQube

Follow these steps to generate the coverage report and send it to SonarQube:

First, start SonarQube:

```bash
docker compose up -d
```

Then, login to http://localhost:9000 with admin/admin credentials.
Change the password to `sonar`.

Lastly, run the following command to generate the coverage report and send it to SonarQube:

```bash
mvn test jacoco:report sonar:sonar
```