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

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.

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/`.