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

Update code coverage #320

Open
Chralt98 opened this issue Sep 26, 2022 · 3 comments
Open

Update code coverage #320

Chralt98 opened this issue Sep 26, 2022 · 3 comments

Comments

@Chralt98
Copy link

Hey,

could you please update the code coverage functionality? It's unfortunately not possible to get coverage reports with using the necessary compiler flags with cargo-fuzz.

This doesn't work:

RUSTFLAGS="-C instrument-coverage" LLVM_PROFILE_FILE="json5format-%m.profraw" cargo fuzz ...

So the users need to use cargo fuzz coverage ...

The library uses the deprecated -Z flag.

@fitzgen
Copy link
Member

fitzgen commented Oct 12, 2022

I personally am not super up to date with how code coverage works in rustc, and don't have the time to dig into that right now. If you do, I'd be happy to review a pull request fixing this!

@Chralt98
Copy link
Author

Sorry, I have no capacities for this at the moment.

@folkertdev
Copy link

I suspect that this has now been fixed? I did need to run a cargo install cargo-fuzz to update my installation to get the fix

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