-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as duplicate
Labels
declined: duplicate ❌This issue or pull request already existsThis issue or pull request already existsdeclined: otherproject 👽This issue should be reported to other projectThis issue should be reported to other projectlanguage: Kotlin
Description
Steps to reproduce
- JaCoCo version: 0.8.13.202504020838
- Operating system: macOS
- Tool integration: Gradle/Kotlin
- Complete executable reproducer: https://github.com/driessamyn/kotlin-coverage-bugs/tree/main
- Steps:
- Clone repo
- from repo root, run:
./gradlew jacocoTestReport
Expected behaviour
Code in example/src/main/kotlin/InlineFun.kt
should be reorted as covered by the tests in example/src/test/kotlin/InlineExtensionFunTest.kt
and example/src/test/kotlin/InlineFunTest.kt
Actual behaviour
JaCoCo reports 0% coverage

I tried this as an extension function and a "regular" function as I thought the issue may be related to it being an extension function, but both report 0% coverage.
I discovered this as part of moving Kapper to use JaCoCo as advised by the kover team.
As expected, the report is identical whether generated through Kover or JaCoCo directly.
Metadata
Metadata
Assignees
Labels
declined: duplicate ❌This issue or pull request already existsThis issue or pull request already existsdeclined: otherproject 👽This issue should be reported to other projectThis issue should be reported to other projectlanguage: Kotlin