Available on sonatype oss and maven central repository.
Join the SCCT google group for help, bug reports, feature requests, and general discussion on SCCT.
2.10.x, 2.9.3, 2.9.2 and 2.9.1.
addSbtPlugin("com.github.scct" % "sbt-scct" % "0.2.1")
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
addSbtPlugin("com.github.scct" % "sbt-scct" % "0.3-SNAPSHOT")
seq(ScctPlugin.instrumentSettings : _*)
$ sbt clean scct:test
Then open:
./target/scala_2.9.2/coverage-report/index.html
Add the plugin instrumentation settings to child projects and the report
merging settings to the parent project.
For example project/MyBuild.scala:
object MyBuild extends Build {
lazy val root = Project(id = "parent", base = file("."))
settings (ScctPlugin.mergeReportSettings: _*) aggregate(first, second)
lazy val firstChild = Project(id = "firstchild", base = file("first"))
settings (ScctPlugin.instrumentSettings: _*)
lazy val secondChild = Project(id = "secondchild", base = file("second"))
settings (ScctPlugin.instrumentSettings: _*)
}
Run coverage for all child projects with:
$ sbt clean scct:test
This creates individual coverage reports into
$childProjectDir/target/scala*/coverage-report/
Merge all the existing child reports into
$parentProjectDir/target/scala*/coverage-report/ with:
$ sbt scct-merge-report
If you want to integrate your code coverage into Jenkins, you will need
to install Cobertura
plugin
and add the post-build action.

A sbt plugin is available in case you need your coverage reports to be uploaded to https://coveralls.io :




