I'm trying to figure out the exclusion syntax in k...
# code-coverage
n
I'm trying to figure out the exclusion syntax in kover cli report processing:
ABCScope$Objects
ABCScope$Objects$1
How can I exclude these two cases generally? Jacoco uses syntax like this:
**/*Scope*.*
which handles it. I can't seem to figure this out for the report processing. Second qn: Is the exclusion syntax the same for
intellij-coverage-agent
and
kover-cli report
?
s
Hi, For these cases, the equivalent is
"*Scope\$*"
. This syntax should work the same, both in the Kover Gradle Plugin and in the Kover CLI
n
Kover report complains about dangling metacharacter (*), so do I have to pass it to both workflows in quotes?
I get this error:
test:coverageRegexExcludes: Invalid escape sequence: \$
so i'm definitely having some trouble figuring out the right syntax here. if i get the exclusion right, then technically Scope should show no value in my test coverage, right? cause right now it keeps getting included no matter what regex i use, locally or otherwise - it computes to being tested to 0 (which is expected for that class)
follow up qn: if i Include a "scope" class as part of a list of default includes, and then use 'exclude' to exclude the scope class, will that work or will it retain all the includes by default? which means i might just have to filter out the includes to begin with
139 Views