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

Wrong kcov parameters on macos #52

Open
paluchs-iohk opened this issue Apr 4, 2023 · 0 comments
Open

Wrong kcov parameters on macos #52

paluchs-iohk opened this issue Apr 4, 2023 · 0 comments

Comments

@paluchs-iohk
Copy link

There's an issue when running cargo-kcov on macos.

cargo kcov -v   
    Clean [..]
    Build test executables
    Coverage found the following executables: ["..."]
    Running "kcov" "--exclude-pattern=/Users/user/.cargo" "--exclude-pattern=/Users/travis/build/rust-lang/rust/" [...]```
And execution takes forever on a very small project since the libraries are instrumented.

kcov help page states:

--exclude-pattern=pat   comma-separated path patterns to exclude from the coverage report

so, it looks like param values should be comma separated, probably the second values overrides the first one.

And:
https://github.com/kennytm/cargo-kcov/blob/master/src/main.rs

                     // Exclude the standard library symbols, otherwise kcov will take forever to run.
                    "--exclude-pattern=/Users/travis/build/rust-lang/rust/" 

does not seem to work on macos if you don't have Travis installed.

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

1 participant