-
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
Different filter behaviour between Kover & JaCoCo coverage tools #543
Labels
Comments
realdadfish
added
Bug
Bug issue type
S: untriaged
Status: issue reported but unprocessed
labels
Feb 16, 2024
Merged
shanshin
added a commit
that referenced
this issue
Feb 16, 2024
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
shanshin
added
S: in progress
Status: implementing or design in process
and removed
S: untriaged
Status: issue reported but unprocessed
labels
Feb 16, 2024
shanshin
added a commit
that referenced
this issue
Feb 16, 2024
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
shanshin
added
S: ready for release
Status: merged in the main branch
and removed
S: in progress
Status: implementing or design in process
labels
Feb 16, 2024
Fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: