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
How can we exclude generated files? #30
Comments
Hi! At the moment, the API of the plugin does not imply the exclusion of specific classes from the report. See #17 |
Duplicate #17 |
Why exclude don't work? I am have next exclude template but in output I am have |
@shanshin Can you see what I'm doing wrong? |
This works for me
|
Perhaps you have another test task in your project in which these classes are not excluded? And what do you use as an coverage engine, JaCoCo or IntelliJ? |
Hey guys, I have a similar issue. When I exclude some packages from kover it is indeed not taken into account in the percentages Class%, Block% and Line%. But because it is still part of the report, the overall coverage drops. This leads to an even more negative result than when I wouldn't exclude it. I use Kotlin 1.6.0 with Gradle 7.3. My configuration:
|
@SimonedeGijt, please check in version |
@Tihon-Ustinov, please, if the problem is reproduced in version |
Just for that random soul coming across the same issue above version 0.4.4: I'm currently on version 0.6.0 and this doesn't work for me when I set the exclusions on module level. If I enable koverMerged and run the merged task and set the exclusions on project level this works. |
I am able to exclude hilt package but FragmentDirections files are still showing in the report.
The text was updated successfully, but these errors were encountered: