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

Kotlin Multiplatform report is empty #100

Closed
JavierSegoviaCordoba opened this issue Dec 18, 2021 · 1 comment · Fixed by #103
Closed

Kotlin Multiplatform report is empty #100

JavierSegoviaCordoba opened this issue Dec 18, 2021 · 1 comment · Fixed by #103
Labels

Comments

@JavierSegoviaCordoba
Copy link

JavierSegoviaCordoba commented Dec 18, 2021

Repro: https://github.com/Reproducers/kover-repro

Report:

<?xml version="1.0" ?>
<report name="Intellij Coverage Report">
<counter type="INSTRUCTION" missed="0" covered="0"/>
<counter type="BRANCH" missed="0" covered="0"/>
<counter type="LINE" missed="0" covered="0"/>
<counter type="METHOD" missed="0" covered="0"/>
<counter type="CLASS" missed="0" covered="0"/>
</report>

In the same repo, there is a JVM library that is working.

Both engines fail.

If I apply the plugin directly to the multiplatform subproject instead of in the root project, it works.

If I try to add kover to all subprojects, the report is empty in the multiplatform project.

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath("org.jetbrains.kotlinx:kover:0.4.4")
    }
}

subprojects {
    pluginManager.apply("org.jetbrains.kotlinx.kover")
}

It is really weird behavior.

At the same time, everything I have tried is working in the JVM library.

@shanshin
Copy link
Collaborator

Fixed in 0.5.0-RC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants