Generate jacoco code coverage report for all auxiliary modules

I am trying to integrate JaCoCo into a Play Scala project, I want it to run code coverage for all submodules in one report.

When I add "jacoco.settings" to the root project, jacoco does not recognize tests for auxiliary modules. To do this, I configured jacoco for each of the modules, and then launched coverage for each of them (see the comment code). The result is one report for each module.

I would like to create one report for the whole project, any idea what can I do?

object PlutusBuild extends Build {

lazy val root = Project(id = "Plutus", base = file("."))
               .aggregate(common, importer, crawler, ref_webapp)
               .settings(graphSettings: _*)
               .settings(jacoco.settings: _*)

lazy val common = Project(id = "Plutus-Common", base =      
            file("common"))
            /*.settings(jacoco.settings: _*)*/

lazy val importer = Project(id = "Plutus-Importer", base = 
            file("importer")).dependsOn(common)
            /*.settings(jacoco.settings: _*)*/

lazy val crawler  = Project(id = "Plutus-Crawler", base =  
            file("crawler")).dependsOn(common).
            configs(Atmos).settings(atmosSettings:_*)
            /*.settings(jacoco.settings: _*)*/
...

Thanks...

+4
source share
1 answer

, jacoco4sbt? 2.1.4.

:

Keys.fork in jacoco.Config := true
+1

All Articles