Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sebastianhaeni/springboot-maven-jacoco-sonarqube-example
- Owner: sebastianhaeni
- Created: 2023-09-27T10:14:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T10:56:19.000Z (over 1 year ago)
- Last Synced: 2023-09-27T21:13:43.979Z (over 1 year ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```