https://github.com/konstan/test-report-sonar
test-report-sonar is a tool for producing Sonar Generic Execution XML reports from clojure.test test suites.
https://github.com/konstan/test-report-sonar
clojure sonarqube testing tests
Last synced: 14 days ago
JSON representation
test-report-sonar is a tool for producing Sonar Generic Execution XML reports from clojure.test test suites.
- Host: GitHub
- URL: https://github.com/konstan/test-report-sonar
- Owner: konstan
- Created: 2022-03-05T09:31:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T13:02:38.000Z (about 3 years ago)
- Last Synced: 2025-01-23T09:28:00.669Z (12 months ago)
- Topics: clojure, sonarqube, testing, tests
- Language: Clojure
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-report-sonar
Renders test reports results in [Sonar Generic Execution format](https://docs.sonarqube.org/latest/analysis/generic-test/#header-2).
The plugin is envoked when you run `lein test`.
For the the plugin to be invoked, add the following to the `:test` profile
```clojure
:profiles {:test {:plugins [[org.clojars.konstan/lein-test-report-sonar "0.0.2"]]
:test-report-sonar {:output-dir "test-reports"}}
}
```
The reports will be generated in `test-reports/sonar/testExecutions.xml`.
The plugin can generate JUnit XML results as well. To do so, add
`:emit-junit-xml true` under `:test-report-sonar` map.
```clojure
:profiles {:test {:plugins [[org.clojars.konstan/lein-test-report-sonar "0.0.2"]]
:test-report-sonar {:output-dir "test-reports"
:emit-junit-xml true}}
}
```
The JUnit XML reports will be generated under `test-reports/xml/`.