Skip to content
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

How diff-cover excludes multiple paths #265

Open
lirui311012 opened this issue Dec 31, 2021 · 4 comments
Open

How diff-cover excludes multiple paths #265

lirui311012 opened this issue Dec 31, 2021 · 4 comments

Comments

@lirui311012
Copy link

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
Copy link
Author

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

@lirui311012
Copy link
Author

solved,thanks

@zeavielly
Copy link

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

@Bachmann1234
Copy link
Owner

@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*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants