Hey folks! I'm trying to exclude some files from reported coverage. The file name in question is
Main.kt
and only contains
fun main()
, I have one of these files in several modules but I'm having a hard time getting the
filters { classes{} }
to work. Should the filter be in the root
kover
extension, in each module where kover is defined, or in the
koverMerged
extension?
Copy code
filters {
classes {
exclude.add("*.MainKt")
}
}
This is, what I believe, should be the correct "class" name for the main function that I'm trying to add to the filter block
s
Sam
09/19/2022, 12:01 PM
This doesn't really answer your question, but I gave up. I use SonarCloud to report and view my code coverage as generated using kover on my build server.
I then add my exclusions at the sonarcloud level which seems to be reliable. Don't know if that helps!