-
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
Coverage drop when updating from 0.7.5 to 0.7.6 #548
Comments
Hi, By these commands, I collected the coverage locally
If you get the same, then there may be some problem when uploading coverage to codecov or in support of codecov |
Thanks for getting back to me so quickly on this, just wanted to start by saying I'm a huge fan of kover and the work you all do 🙏 As for the issue, running
So the 4.18% drop codecov reports is directly coming from the artifact we upload Edit to add: Worth noting these tests are instrumented with Robolectric and I see there was a recent change related to it -- perhaps the addition of |
@zuevmaxim, it seems that in recent versions of the agent, a check has been added, which in some cases has a false positive. Before running the tests locally, you should delete the line |
Fixed in |
Describe the bug
Coverage in one of our Android projects drops significantly when upgrading the
org.jetbrains.kotlinx:kover-gradle-plugin
from 0.7.5 to 0.7.6Errors
None
Expected behavior
No significant change in coverage between patch version updates
Reproducer
Aiming to reproduce this on a public repo; will update this post with the resultsDependabot already picked it up and the coverage drop was only 4.18%. Still pretty significant, but nothing compared to the percentages we're seeing in the project that led to this report
Reports
The following is the output of running 0.7.4 through 0.7.6 on the same commit; the only change being the Kover plugin version:
Kover Version 0.7.4:
Class: 73.7% (14/19)
Method: 74% (71/96)
Branch: 36.8% (111/302)
Line: 79.2% (490/619)
Instruction: 78.6% (2367/3012)
Kover Version 0.7.5:
Class: 73.7% (14/19)
Method: 74% (71/96)
Branch: 35.8% (108/302)
Line: 79.2% (490/619)
Instruction: 78.6% (2367/3012)
Kover Version 0.7.6:
Class: 73.7% (14/19)
Method: 41.7% (40/96)
Branch: 4.3% (13/302)
Line: 31.5% (195/619)
Instruction: 30.6% (921/3009)
Environment
The text was updated successfully, but these errors were encountered: