ScoverageReport
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
- Self type
Members list
Type members
Classlikes
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 ScoverageModuletrait ScalaModuletrait ScalaModuleApitrait ScalaModuleBasetrait JavaModuletrait JavaModuleApitrait AssemblyModuletrait SemanticDbJavaModuletrait SemanticDbJavaModuleApitrait OfflineSupportModuletrait GenIdeaModuletrait GenIdeaModuleApitrait RunModuletrait RunModuleApitrait DefaultTaskModuletrait JavaModuleBasetrait BspModuletrait BspModuleApitrait WithJvmWorkerModuletrait JavaHomeModuletrait CoursierModuletrait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass AnyShow all
- Self type
-
Inherited classlikes
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
Value members
Concrete methods
Reports to the console for all modules
Generates report in html format for all modules
Attributes
- Source
- ScoverageReport.scala
Attributes
- Source
- ScoverageReport.scala
Generates report in Cobertura's xml format for all modules
Generates report in xml format for all modules
Inherited methods
Attributes
- Inherited from:
- BaseClass
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
Attributes
- Inherited from:
- Module
- Source
- Module.scala
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