I am working on a multi project build. I have followed same instructions, as mentioned here http://mtkopone.github.io/scct/, to generate code coverage report. I am able to see this message scct: [testProject] Saving coverage data. on console while running sbt scct:test. But can't see coverage report in this folder $childProjectDir/target/scala_/coverage-report/
Here is some source code of build.scala
lazy val root = Project("platform3", file("."))
.settings(ScctPlugin.mergeReportSettings: _*)
.aggregate(
testProject
)
.settings(basicSettings: _*)
lazy val testProject = Project("testProject", file("testProject"))
.dependsOn(testUtil)
.settings(noPublishing: _*)
.settings(libraryDependencies ++= Seq(
akkaKernel,
akkaSlf4j,
jacksonScala,
jodaTime,
prettyTime,
logback,
sprayCan,
sprayRouting,
specs2
))
.settings(ScctPlugin.instrumentSettings: _*)
The dependency, which I am using
// Scct Plugin
addSbtPlugin("com.sqality.scct" %% "sbt-scct" % "0.3")
Can anyone help me to resolve this? Thanks in advance.
Ayush
SCCT is obsolete, use Scoverage instead. Check out my working example of a multi-module SBT project which creates coverage reports for individual projects. https://github.com/RadoBuransky/sonar-scoverage-plugin/tree/master/samples/sbt/multi-module