Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarich committed Sep 25, 2013
1 parent 3fe71e8 commit c01e662
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Sonar Scala Plugin
===========
Supports Sonar 3.0+
Requires Cobertura and Surefire plugins.

To include test and coverage reports:

1. Install these plugins in your scala project:

https://github.com/bseibel/sbt-simple-junit-xml-reporter-plugin
- Creates junit xml reports for output from scalatest.

http://mtkopone.github.io/scct/
- Creates a Scala-friendly code-coverage report, and includes a coberura xml report.

2. Add the following properties to your project's sonar-project.properties file:

sonar.dynamicAnalysis=reuseReports
sonar.surefire.reportsPath=test-reports
sonar.core.codeCoveragePlugin=cobertura
sonar.java.coveragePlugin=cobertura
sonar.cobertura.reportPath=target/scala-[scala-version]/coverage-report/cobertura.xml

0 comments on commit c01e662

Please sign in to comment.