Open refaelsh opened 2 years ago
To add to this:
$HOME/.cargo
only appear in the cobertura report--keep-only='./**'
causes nothing to appear in the cobertura report, and --keep-only=**'
has no effect (ie. everything including $HOME/.cargo
still appears)--ignore='/**'
may work, because it appears to filter on the /coverage/packages/package/classes/class/@filename
attribute, which often starts with /
if the filename is outside the source directory
I am seeing wrong/strange paths in Cobertura report. Here is what I do:
And here is and example of a strange/wrong path in the resulting coverage.xml file:
Please help :-)
UPDATE: I've noticed that if I add this
--ignore "$HOME/.cargo/*"
to thegrcov
command mentioned above, the problem goes away. Now, the question is how did the$HOME/.cargo/*
folder got added in the first place?