Available on sonatype oss and maven central repository.
2.10.x, 2.9.3, 2.9.2 and 2.9.1.
Join the SCCT google group for help, bug reports, feature requests, and general discussion on SCCT.
addSbtPlugin("com.github.scct" % "sbt-scct" % "0.2")
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
addSbtPlugin("com.github.scct" % "sbt-scct" % "0.3-SNAPSHOT")
seq(sbt.scct.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 (sbt.scct.ScctPlugin.mergeReportSettings: _*) aggregate(first, second)
lazy val firstChild = Project(id = "firstchild", base = file("first"))
settings (sbt.scct.ScctPlugin.instrumentSettings: _*)
lazy val secondChild = Project(id = "secondchild", base = file("second"))
settings (sbt.scct.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



