Skip to content

Kotlin inline functions not reported as covered #1921

@driessamyn

Description

@driessamyn

Steps to reproduce

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

Image

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions