-
Notifications
You must be signed in to change notification settings - Fork 53
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
Inconsistence between koverVerify and koverVerifyJvm #667
Comments
Hi, could you clarify, is there Android build variants in your project? |
Hi! I currently have Android, JVM (Desktop) and iOS targets. |
Is there a I recommend using the full path to run tasks. If in your case the verification rules are written in the root project, then you need to call the verification task only for this root report ( If you write it down in a simple form |
When I run I created a project as a minimal setup to reproduce de issue. Could you please check it? https://github.com/MessiasLima/kover-verify-jvm-issue |
Yes, this is expected because there are no jvm targets in the root project. If there are different report variants in different projects, the easiest way is to create a custom common variant, as in the example. As well as an alternative, consider using the Aggregation settings plugin plugin. It is easier to use, however, at the moment there are no some settings, and so far there is no validation (will be added in the next release) |
Describe the bug
In a Kotlin multiplatform environment, there is an inconsistency between the tasks
koverVerify
andkoverVerifyJvm
.Where running the latter, the coverage verification isn't working and the tasks always succeeds.
Errors
When running regular verify
when running the JVM variant
❯ ./gradlew clean koverVerifyJvm Reusing configuration cache. BUILD SUCCESSFUL in 1s 19 actionable tasks: 15 executed, 4 up-to-date Configuration cache entry reused.
Expected behavior
Both should give the same result, since in my project, all code is on common source set
Reproducer
Kover config on root
build.gradle.kts
on compose build gradle file I have the Kover plugin applied like..
Reports
If applicable, report files or screenshots.
Environment
The text was updated successfully, but these errors were encountered: