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

Cannot support kotlin multiplatform by 1.7.20(The coverage of iosTest cannot be counted) #292

Closed
hxxyyangyong opened this issue Jan 10, 2023 · 7 comments
Assignees
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed

Comments

@hxxyyangyong
Copy link

The code to detect whether it is a multiplatform project is:
image

And the code to actually add the multiplatform plugin is:
image

In this way, the coverage statistics of iosTest cannot be achieved

@hxxyyangyong hxxyyangyong added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Jan 10, 2023
@mustafaozhan
Copy link

Ohh, I just realized that I have the same issue too

@shanshin
Copy link
Collaborator

Hi,
at the moment, Kover supports instrumentation of JVM tests only.

Native tests are not supported and their coverage is not measured.

@mustafaozhan
Copy link

@shanshin Do we have any issue to track this ? Or should we follow this one ?

@shanshin
Copy link
Collaborator

I will create an issue and attach a link to it here.

However, this task is not in the short-term plans, because its implementation requires significant efforts to implement native code instrumentation.

@mustafaozhan
Copy link

Yes I assumed the same that's why I wanted to track 🙂

@shanshin
Copy link
Collaborator

Duplicates #293

@nathanfallet
Copy link

nathanfallet commented Oct 14, 2023

@hxxyyangyong @mustafaozhan Are you have to get the coverage of commonMain and androidMain? When I add kover to my shared module I have no coverage at all, even after running tests on commonTest...

> Task :shared:koverPrintCoverage
No sources

EDIT: Found that it works with :shared:koverPrintCoverageDebug:

> Task :shared:koverPrintCoverageDebug
application line coverage: 23.057%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed
Projects
None yet
Development

No branches or pull requests

4 participants