Skip to content

Question/feature request: possibility to exclude functions annotated with given annotation (e.g. Composables) from coverage calculation #121

Closed
@plnice

Description

One of the biggest struggles with code coverage in my Android project is that we have a very little code coverage reported by the JaCoCo due to the fact that the project uses Jetpack Compose. We calculate unit tests coverage, however, Composables should be tested using UI tests (https://developer.android.com/jetpack/compose/testing). We'd like to exclude @Composable-annotated Kotlin functions from unit tests coverage calculation, however, there's no way to do this with JaCoCo (jacoco/jacoco#1208, jacoco/jacoco#1259). If kover would support to exclude such code, that would be a game changer for us and definitely we would switch from JaCoCo to kover, once it's stable.

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