https://github.com/jgleitz/broken-testkit-coverage
Reproduces that koral--/jacoco-testkit-gradle-plugin is broken for Gradle 6.5
https://github.com/jgleitz/broken-testkit-coverage
Last synced: 2 months ago
JSON representation
Reproduces that koral--/jacoco-testkit-gradle-plugin is broken for Gradle 6.5
- Host: GitHub
- URL: https://github.com/jgleitz/broken-testkit-coverage
- Owner: jGleitz
- Created: 2020-06-16T14:26:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T15:27:15.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T12:35:34.519Z (4 months ago)
- Language: Kotlin
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository reproduces a bug of [koral--/jacoco-gradle-teskit-plugin](https://github.com/koral--/jacoco-gradle-testkit-plugin) with Gradle 6.5.
## Bug description
When executing `./gradlew test jacocoTestReport` in this repository, the output contains:
```
> Task :jacocoTestReport
[ant:jacocoReport] Classes in bundle 'broken-testkit-coverage' do no match with execution data. For report generation the same class files must be used as at runtime.
[ant:jacocoReport] Execution data for class de/joshuagleitze/gradle/CoverageTestPlugin$apply$1 does not match.
[ant:jacocoReport] Execution data for class de/joshuagleitze/gradle/CoverageTestPlugin does not match.
[ant:jacocoReport] Execution data for class de/joshuagleitze/gradle/CoverageTestPlugin$apply$1$1 does not match.
```and the coverage report shows 0% coverage.
This does not happen with the previous version of Gradle:
After executing `./gradlew wrapper --gradle-version 6.4.1`, `./gradlew test jacocoTestReport` does _not_ have these lines in the output and the coverage report shows 100% coverage.
It also does not happen with Gradle 6.6:
After executing `./gradlew wrapper --gradle-version 6.6-rc-4`, `./gradlew test jacocoTestReport` does _not_ have these lines in the output and the coverage report shows 100% coverage.
## Notes
This repository requires a Java version ≥ 9.