Mill plugin to collect test coverage data with JaCoCo and generate reports.
You need at least Mill 0.9.7 to use mill-jacoco
.
To enable coverage data generation with JaCoCo, you need to add the JacocoTestModule
to your tests.
import mill._
import mill.scalalib._
import mill.define._
// Load the plugin from Maven Central via ivy/coursier
import $ivy.`de.tototec::de.tobiasroeser.mill.jacoco::0.0.4`
import de.tobiasroeser.mill.jacoco.JacocoTestModule
object main extends JavaModule {
object test extends super.Tests with JacocoTestModule
}
To generate JaCoCo reports, run:
mill de.tobiasroeser.mill.jacoco.Jacoco/jacocoReportFull
You can download binary releases from Maven Central.
Please make sure to use the correct mill platform suffix matching your used mill version.
This project is published under the Apache License, Version 2.0.
- mill
-
Mill is a Scala-based open source build tool. In my opinion the best build tool for the JVM. It is fast, reliable and easy to understand.
- me
-
I’m a professional software developer and love to write and use open source software. I’m actively developing and maintaining mill as well as several mill plugins.
If you like my work, please star it on GitHub. You can also support me via GitHub Sponsors.
- Contributing
-
If you found a bug or have a feature request, please open a new issue on GitHub. I also accept pull requests on GitHub.