trait ScoverageReport extends define.Module
Allows the aggregation of coverage reports across multi-module projects.
Once tests have been run across all modules, this collects reports from all modules that extend mill.contrib.scoverage.ScoverageModule. Simply define a module that extends mill.contrib.scoverage.ScoverageReport and call one of the available "report all" functions.
For example, define the following scoverage
module and use the relevant
reporting option to generate a report:
object scoverage extends ScoverageReport { override def scalaVersion = "<scala-version>" override def scoverageVersion = "<scoverage-version>" }
- mill .test # run tests for all modules - mill scoverage.htmlReportAll # generates report in html format for all modules - mill scoverage.xmlReportAll # generates report in xml format for all modules - mill scoverage.consoleReportAll # reports to the console for all modules
The aggregated report will be available at either out/scoverage/htmlReportAll.dest/
for html reports or out/scoverage/xmlReportAll.dest/
for xml reports.
- Self Type
- ScoverageReport
- Annotations
- @Scaladoc()
- Alphabetic
- By Inheritance
- ScoverageReport
- Module
- Cacher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cachedTarget[T](t: => T)(implicit c: Enclosing): T
- Attributes
- protected[this]
- Definition Classes
- Cacher
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def consoleReportAll(evaluator: Evaluator, sources: String = "__.allSources", dataTargets: String = "__.scoverage.data"): Command[PathRef]
Reports to the console for all modules
Reports to the console for all modules
- Annotations
- @Scaladoc()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def htmlReportAll(evaluator: Evaluator, sources: String = "__.allSources", dataTargets: String = "__.scoverage.data"): Command[PathRef]
Generates report in html format for all modules
Generates report in html format for all modules
- Annotations
- @Scaladoc()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def millModuleBasePath: BasePath
- Definition Classes
- Module
- lazy val millModuleDirectChildren: Seq[define.Module]
- Definition Classes
- Module
- implicit def millModuleExternal: External
- Definition Classes
- Module
- implicit def millModuleSegments: Segments
- Definition Classes
- Module
- implicit def millModuleShared: Foreign
- Definition Classes
- Module
- def millOuterCtx: Ctx
- Definition Classes
- Module
- def millSourcePath: Path
- Definition Classes
- Module
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reportTask(evaluator: Evaluator, reportType: ReportType, sources: String, dataTargets: String): Task[PathRef]
- def scoverageReportWorkerModule: ScoverageReportWorker.type
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Module → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def xmlReportAll(evaluator: Evaluator, sources: String = "__.allSources", dataTargets: String = "__.scoverage.data"): Command[PathRef]
Generates report in xml format for all modules
Generates report in xml format for all modules
- Annotations
- @Scaladoc()
- object millInternal extends Internal
- Definition Classes
- Module
- Annotations
- @Scaladoc()
- object workerModule extends Module with ScoverageModule
We use this only to get access to the right classpaths
We use this only to get access to the right classpaths
- Annotations
- @Scaladoc()