This is a sbt 0.10.x plugin for scct the scala code coverage tool.
scct ist auto-installed depending on the scalaVersion of the project.
- coverage:compile
- coverage:test
- coverage:doc
coverage:test and coverage:doc do the same, so that if you run coverage:package-doc, you get your coverage report packaged.
docDirectory is reused for the coverage report directory
-
retrive the sources from github:
git clone [email protected]:dvc94ch/sbt-scct.git
-
set sbt version in sbt-scct/project/build.properties:
sbt.version=0.10.1
-
publish plugin:
cd sbt-scct sbt publish-local
-
add plugin dependency in .sbt/project/plugins/build.sbt:
libraryDependencies += "ch.craven" %% "scct-plugin" % "0.2"
-
to enable ScctPlugin in your project, add the following line to your build.sbt
seq(ScctPlugin.scctSettings: _*)