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

feat: adding source based coverage using cargo-llvm-cov #719

Closed

Conversation

jrmncos
Copy link

@jrmncos jrmncos commented Jul 18, 2024

Using cargo-llvm-coverage to generate source based coverage.
The library is wrapper of the compiler flag -C instrument-coverage more details here

The command cargo llvm-cov --all-features --workspace --html --output-dir coverage was tested locally and it generated an html file with the coverage.

I used Github page to publish the .html file, but Codecov can be used too. I need to verify is there are free plan options.

Any change or suggest will be welcome!

#684

@jrmncos
Copy link
Author

jrmncos commented Jul 18, 2024

btw the integration with Github pages is not fully tested. I couldn't from my forked repo, cause I didn't have permissions. I published the PR mainly to discuss about it. Thanks!

@ICavlek ICavlek linked an issue Aug 2, 2024 that may be closed by this pull request
@sergey-melnychuk
Copy link
Collaborator

@jrmncos , we don't need to publish coverage to github pages. What we'd like to have is an incremental coverage report for each PR.

@jrmncos
Copy link
Author

jrmncos commented Aug 7, 2024

@sergey-melnychuk hey how it's going? I used Github pages because I'm not so sure if codecov is free. I can research about that and implemented. What do you think?

@sergey-melnychuk
Copy link
Collaborator

#787 (comment)

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

Successfully merging this pull request may close these issues.

2 participants