Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lefou/mill-jacoco
Coverage Reporting for Mill
https://github.com/lefou/mill-jacoco
buildtool coverage jacoco mill mill-plugin scala
Last synced: 10 days ago
JSON representation
Coverage Reporting for Mill
- Host: GitHub
- URL: https://github.com/lefou/mill-jacoco
- Owner: lefou
- License: apache-2.0
- Created: 2021-10-16T11:53:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-30T12:50:03.000Z (about 1 month ago)
- Last Synced: 2024-10-16T09:22:16.695Z (22 days ago)
- Topics: buildtool, coverage, jacoco, mill, mill-plugin, scala
- Language: Scala
- Homepage:
- Size: 84 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.adoc
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
= mill-jacoco - Coverage Reporting for Mill
:version: 0.0.4
:mill-platform: 0.11
:mill-min-version: 0.9.7
:java-package: de.tobiasroeser.mill.jacoco
:project-home: https://github.com/lefou/mill-jacoco
:toc:
:toc-placement: preambleMill plugin to collect test coverage data with https://www.jacoco.org/jacoco/[JaCoCo] and generate reports.
== Quickstart
You need at least Mill {mill-min-version} to use `mill-jacoco`.
To enable coverage data generation with JaCoCo, you need to add the `JacocoTestModule` to your tests.
[source,scala,subs="attributes,verbatim"]
----
import mill._
import mill.scalalib._
import mill.define._// Load the plugin from Maven Central via ivy/coursier
import $ivy.`de.tototec::{java-package}::{version}`
import {java-package}.JacocoTestModuleobject main extends JavaModule {
object test extends super.Tests with JacocoTestModule
}
----To generate JaCoCo reports, run:
[source,subs="attributes,verbatim"]
----
mill {java-package}.Jacoco/jacocoReportFull
----== Download
You can download binary releases from
https://search.maven.org/artifact/de.tototec/{java-package}_mill{mill-platform}_2.13[Maven Central].Please make sure to use the correct _mill platform suffix_ matching your used mill version.
== License
This project is published under the https://www.apache.org/licenses/LICENSE-2.0[Apache License, Version 2.0].
== About
mill::
https://github.com/lihaoyi/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::
+
--
https://github.com/lefou/[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 https://github.com/lefou?utf8=%E2%9C%93&tab=repositories&q=topic%3Amill&type=&language=[several mill plugins].If you like my work, please star it on GitHub. You can also support me via https://github.com/sponsors/lefou[GitHub Sponsors].
--Contributing::
If you found a bug or have a feature request, please open a {project-home}/issues[new issue on GitHub].
I also accept {project-home}/pulls[pull requests on GitHub].== Releases / Changelog
=== 0.0.4 - 2024-02-06
* Better detect Mill test modules to exclude their files / classes from coverage reports. Requires at least Mill `0.11.7`.
=== 0.0.3 - 2023-06-24
* Support for Mill 0.11
* Dependency updates=== 0.0.2 - 2022-04-12
* Support for Mill 0.10
=== 0.0.1 - 2021-10-16
* Initial Release