You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my project contains sources that have a package named android in it's package path, like this:
packagemy.company.project.android.some.package
Sources and tests on these sources are analyzed and covered perfectly with the Kover tool, however, when using JaCoCo, these sources and tests are completely ignored.
This boiles down to my class filter exclusion list, which I configure like this:
configuration.classFilter is a ListPropert<String> that contains the entry android.*. Apparently this is interpreted differently between JaCoCo and Kover, because when I removed that entry, even with JaCoCo the coverage was reported just fine.
Environment
Kover Gradle Plugin version: 0.7.6-SNAPSHOT
Gradle version: 8.5
Kotlin project type: Kotlin/Android
Coverage Toolset: Kover, JaCoCo
The text was updated successfully, but these errors were encountered:
Class filtering in JaCoCo took place by file name. Because previously the absolute path to the class file was taken, the filter worked on any occurrence of the specified string, even if it was no match starting from the root package.
Now the search takes place relative to the classes root directory, which allows you to change the regular expression of the search, and remove arbitrary characters at the beginning in it.
Fixes#543
Class filtering in JaCoCo took place by file name. Because previously the absolute path to the class file was taken, the filter worked on any occurrence of the specified string, even if it was no match starting from the root package.
Now the search takes place relative to the classes root directory, which allows you to change the regular expression of the search, and remove arbitrary characters at the beginning in it.
Fixes#543
PR #546
So my project contains sources that have a package named
android
in it's package path, like this:Sources and tests on these sources are analyzed and covered perfectly with the Kover tool, however, when using JaCoCo, these sources and tests are completely ignored.
This boiles down to my class filter exclusion list, which I configure like this:
configuration.classFilter
is aListPropert<String>
that contains the entryandroid.*
. Apparently this is interpreted differently between JaCoCo and Kover, because when I removed that entry, even with JaCoCo the coverage was reported just fine.Environment
The text was updated successfully, but these errors were encountered: