Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with useJacoco option #725

Closed
GabrielAzevedo88 opened this issue Jan 3, 2025 · 2 comments
Closed

Error with useJacoco option #725

GabrielAzevedo88 opened this issue Jan 3, 2025 · 2 comments
Assignees
Labels
Question Support request issue type S: waiting for clarification Status: additional information required to proceed

Comments

@GabrielAzevedo88
Copy link

Hi everyone,

I configured Kover in my project with several modules, and it worked perfectly. However, I need to add the useJacoco() option because of my CI. After adding this option, I encountered an error when executing the task:

Execution failed for task ':app:koverHtmlReport'.
> A failure occurred while executing kotlinx.kover.gradle.plugin.tools.jacoco.JacocoHtmlReportAction
> Invalid execution data file.

Kover version: 0.9.0
Command executed: ./gradlew koverHtmlReport

Configuration in Gradle:

kover {
    useJacoco()

    reports {
        filters.excludes {
            androidGeneratedClasses()
     }
}

Could anyone tell me what I missed in the configuration? Thanks

@GabrielAzevedo88 GabrielAzevedo88 added Question Support request issue type S: untriaged Status: issue reported but unprocessed labels Jan 3, 2025
@shanshin
Copy link
Collaborator

shanshin commented Jan 3, 2025

Hi,
if I understand correctly, you have several subprojects (modules) in your build.

In this case, you must specify

kover {
    useJacoco()
}

in each module where Kover plugin is applied.

@shanshin shanshin added S: waiting for clarification Status: additional information required to proceed and removed S: untriaged Status: issue reported but unprocessed labels Jan 3, 2025
@GabrielAzevedo88
Copy link
Author

Yep, I've got a bunch of modules.
That's it! Thanks a lot for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Support request issue type S: waiting for clarification Status: additional information required to proceed
Projects
None yet
Development

No branches or pull requests

2 participants