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

Exclusion regexps do not appear to work #138

Open
rgov opened this issue Feb 2, 2019 · 2 comments
Open

Exclusion regexps do not appear to work #138

rgov opened this issue Feb 2, 2019 · 2 comments

Comments

@rgov
Copy link

rgov commented Feb 2, 2019

coveralls \
    --build-root $(pwd) \
    --gcov $(which llvm-cov) \
    --gcov-options gcov \
    --verbose \
    --exclude-pattern ".*"

This should skip every file, because the regex matches all paths, but instead I see it generating a ton of gcov files.

@rgov rgov changed the title Exclusion rules do not appear to work Exclusion regexps do not appear to work Feb 2, 2019
@rgov
Copy link
Author

rgov commented Feb 2, 2019

Indeed, run_gcov does not ever touch the values in args.regexp.

@adam-stamand
Copy link

You can reference my explanation here #145

tldr; --exclude-pattern isn't used for selecting what gets run with gcov, as you've discovered. It's used for filtering out files/directories from the final report. You have to use --exclude to exclude things from being run with gcov.

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

2 participants