Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 958 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 958 Bytes

test-report-sonar

Renders test reports results in Sonar Generic Execution format.

The plugin is envoked when you run lein test.

For the the plugin to be invoked, add the following to the :test profile

: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.

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