ScoverageReport
mill.contrib.scoverage.ScoverageReport
@Scaladoc(value = "/**\n * Allows the aggregation of coverage reports across multi-module projects.\n *\n * Once tests have been run across all modules, this collects reports from\n * all modules that extend [[mill.contrib.scoverage.ScoverageModule]]. Simply\n * define a module that extends [[mill.contrib.scoverage.ScoverageReport]] and\n * call one of the available \"report all\" functions.\n *\n * For example, define the following `scoverage` module and use the relevant\n * reporting option to generate a report:\n * {{{\n * object scoverage extends ScoverageReport {\n * override def scalaVersion = \"
\"\n * override def scoverageVersion = \"
\"\n * }\n * }}}\n *\n * - mill __.test # run tests for all modules\n * - mill scoverage.htmlReportAll # generates report in html format for all modules\n * - mill scoverage.xmlReportAll # generates report in xml format for all modules\n * - mill scoverage.xmlCoberturaReportAll # generates report in Cobertura\'s xml format for all modules\n * - mill scoverage.consoleReportAll # reports to the console for all modules\n *\n * The aggregated report will be available at either `out/scoverage/htmlReportAll.dest/`\n * for html reports or `out/scoverage/xmlReportAll.dest/` for xml reports.\n */")
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
- Graph
-
- Supertypes
-
trait Moduletrait ModuleApitrait Wrapperclass BaseClasstrait Cachertrait Cacherclass Objecttrait Matchableclass Any
- Self type
Members list
In this article