https://github.com/gw-kit/delta-coverage-plugin
Gradle plugin and CLI for computing code coverage of new/modified code based on a diff
https://github.com/gw-kit/delta-coverage-plugin
code-coverage diff gradle-plugin intellij-coverage jacoco java kotlin
Last synced: 15 days ago
JSON representation
Gradle plugin and CLI for computing code coverage of new/modified code based on a diff
- Host: GitHub
- URL: https://github.com/gw-kit/delta-coverage-plugin
- Owner: gw-kit
- License: mit
- Created: 2023-03-14T21:12:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-07T23:51:14.000Z (20 days ago)
- Last Synced: 2026-03-07T23:56:21.536Z (20 days ago)
- Topics: code-coverage, diff, gradle-plugin, intellij-coverage, jacoco, java, kotlin
- Language: Kotlin
- Homepage: https://gw-kit.github.io/delta-coverage-plugin
- Size: 3.12 MB
- Stars: 34
- Watchers: 1
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Delta Coverage
[](https://github.com/gw-kit/delta-coverage-plugin/releases)
[](https://github.com/gw-kit/delta-coverage-plugin/actions/workflows/build.yml)
[](https://github.com/SurpSG/delta-coverage-plugin/issues)
[](https://github.com/SurpSG/delta-coverage-plugin/stargazers)



**Code coverage for what matters — your changes.**
Delta Coverage is a Gradle plugin that computes code coverage of new/modified code based on a git diff. Focus on testing what you've changed, not the entire codebase.
📖 **[Full Documentation](https://gw-kit.github.io/delta-coverage-plugin)**

## Quick Start
**1. Apply the plugin** (root project)
```kotlin
plugins {
id("io.github.gw-kit.delta-coverage") version "3.6.0"
}
```
**2. Configure diff source**
```kotlin
configure {
diffSource.git.compareWith.set("refs/remotes/origin/main")
}
```
**3. Run**
```bash
./gradlew test deltaCoverage
```
Reports are generated in `build/reports/coverage-reports/`.
## Compatibility
| Delta Coverage | Gradle | Min JVM |
|----------------|--------|---------|
| 3.x | 7.6.4+ | 17 |
| 2.5.x | 6.7.1 - 8.10.2 | 11 |
## Related Projects
- [delta-coverage-action](https://github.com/gw-kit/delta-coverage-action) — GitHub Action for PR comments
- [delta-coverage-cli](delta-coverage-cli/README.md) — Standalone CLI tool
- [cover-jet-plugin](https://github.com/gw-kit/cover-jet-plugin) — IntelliJ coverage for Gradle
## License
MIT