Packages

t

mill.contrib.scoverage

ScoverageReport

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()
Linear Supertypes
define.Module, Cacher, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScoverageReport
  2. Module
  3. Cacher
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def scalaVersion: T[String]
  2. abstract def scoverageVersion: T[String]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cachedTarget[T](t: => T)(implicit c: Enclosing): T
    Attributes
    protected[this]
    Definition Classes
    Cacher
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. 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()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. 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()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. implicit def millModuleBasePath: BasePath
    Definition Classes
    Module
  16. lazy val millModuleDirectChildren: Seq[define.Module]
    Definition Classes
    Module
  17. implicit def millModuleExternal: External
    Definition Classes
    Module
  18. implicit def millModuleSegments: Segments
    Definition Classes
    Module
  19. implicit def millModuleShared: Foreign
    Definition Classes
    Module
  20. def millOuterCtx: Ctx
    Definition Classes
    Module
  21. def millSourcePath: Path
    Definition Classes
    Module
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def reportTask(evaluator: Evaluator, reportType: ReportType, sources: String, dataTargets: String): Task[PathRef]
  26. def scoverageReportWorkerModule: ScoverageReportWorker.type
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    Module → AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. 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()
  33. object millInternal extends Internal
    Definition Classes
    Module
    Annotations
    @Scaladoc()
  34. 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()

Inherited from define.Module

Inherited from Cacher

Inherited from AnyRef

Inherited from Any

Ungrouped