ScoverageReport

mill.contrib.scoverage.ScoverageReport
trait ScoverageReport extends 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.xmlCoberturaReportAll # generates report in Cobertura's 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.

Attributes

Source
ScoverageReport.scala
Graph
Supertypes
trait Module
trait ModuleApi
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

object workerModule extends ScoverageModule

We use this only to get access to the right classpaths

We use this only to get access to the right classpaths

Attributes

Source
ScoverageReport.scala
Supertypes
trait ScalaModule
trait JavaModule
trait RunModule
trait RunModuleApi
trait BspModule
trait BspModuleApi
trait Module
trait ModuleApi
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Self type

Inherited classlikes

object moduleInternal extends Internal

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Attributes

Inherited from:
Module
Source
Module.scala
Supertypes
class Internal
class Object
trait Matchable
class Any

Value members

Abstract methods

def scalaVersion: Simple[String]

Attributes

Source
ScoverageReport.scala
def scoverageVersion: Simple[String]

Attributes

Source
ScoverageReport.scala

Concrete methods

def consoleReportAll(evaluator: Evaluator, sources: String, dataTasks: String): Command[PathRef]

Reports to the console for all modules

Reports to the console for all modules

Attributes

Source
ScoverageReport.scala
def htmlReportAll(evaluator: Evaluator, sources: String, dataTasks: String): Command[PathRef]

Generates report in html format for all modules

Generates report in html format for all modules

Attributes

Source
ScoverageReport.scala
def reportTask(evaluator: Evaluator, reportType: ReportType, sources: String, dataTaskStrings: String): Task[PathRef]

Attributes

Source
ScoverageReport.scala
def xmlCoberturaReportAll(evaluator: Evaluator, sources: String, dataTasks: String): Command[PathRef]

Generates report in Cobertura's xml format for all modules

Generates report in Cobertura's xml format for all modules

Attributes

Source
ScoverageReport.scala
def xmlReportAll(evaluator: Evaluator, sources: String, dataTasks: String): Command[PathRef]

Generates report in xml format for all modules

Generates report in xml format for all modules

Attributes

Source
ScoverageReport.scala

Inherited methods

Attributes

Inherited from:
BaseClass
Source
Module.scala
def moduleDir: Path

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Module -> Any
Inherited from:
Module
Source
Module.scala