https://github.com/adamatti/learnsonar
Pet project to show how to publish metrics to sonar
https://github.com/adamatti/learnsonar
gradle groovy java javascript js jvm nodejs sonar sonarqube typescript
Last synced: 4 months ago
JSON representation
Pet project to show how to publish metrics to sonar
- Host: GitHub
- URL: https://github.com/adamatti/learnsonar
- Owner: adamatti
- Created: 2018-10-31T19:35:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T19:35:29.000Z (over 7 years ago)
- Last Synced: 2025-03-12T17:50:10.730Z (over 1 year ago)
- Topics: gradle, groovy, java, javascript, js, jvm, nodejs, sonar, sonarqube, typescript
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
Pet project to show how to publish metrics (e.g. code coverage, mutation testing) to https://www.sonarqube.org/[sonar], with different language and tools (e.g. https://www.java.com[java] with https://gradle.org/[gradle] / https://maven.apache.org/[maven], https://nodejs.org[node], https://www.typescriptlang.org/[typescript])
#### How to run
* Start docker containers: `make deps`
* Log on http://localhost:9000/admin/marketplace[sonar], install plugins
Then collect metrics and send to sonar:
* for node projects: `npm install` / `npm run jenkins`
* for gradle projects: `gradle jenkins`
* for maven project: `make jenkins`
#### Todo
* Mutation Testing with Gradle + Groovy + Spock
* sample with integration test (with coverage)
* Quality gateways (e.g. break build if coverage < X%)