diff_cover icon indicating copy to clipboard operation
diff_cover copied to clipboard

How diff-cover excludes multiple paths

Open lirui311012 opened this issue 3 years ago • 4 comments

diff-cover -- exclude I want to filter out all files in the test directory and third_party directory through the exclude parameter How should I write the --exclude parameter? thank you!

lirui311012 avatar Dec 31 '21 07:12 lirui311012

I have successfully excluded a directory, now I want to exclude two directories

lirui311012 avatar Dec 31 '21 07:12 lirui311012

solved,thanks

lirui311012 avatar Dec 31 '21 08:12 lirui311012

solved,thanks

Hi, can you please share the solution? I am trying to run diff-cover from bash with multiple paths and it doesn't seem to work. if I use --exclude *a/b/c/* --exclude *b/c/d* ... -> it only excludes the last solution and if I use --exclude *a/b/c* *b/c/d* ... -> it throws an error that invalid argument exception.

Thank you

zeavielly avatar Jan 08 '22 17:01 zeavielly

@zeavielly I'll admit it's been a while and I'll have to experiment a bit but I would have expected --exclude *a/b/c* *b/c/d* to work in theory.

Perhaps quoting them?

--exclude "*a/b/c*" "*b/c/d*"

Bachmann1234 avatar Jan 08 '22 19:01 Bachmann1234