-
Notifications
You must be signed in to change notification settings - Fork 696
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
Produce code coverage reports for Rust code #6951
Comments
References below but here's the how-to for the llvm version:
The process is basically the same for grcov...
rustc book: |
So the "todo" would be for me to learn how the Secure Drop CI process works (similar to what your grcov link does), integrate this process into it, and integrate the report into the overall project report. Is that where you all want this to go? I'll look into the securedrop build files and see where an actual PR would come in. |
Just like we have pytest output a coverage report, we should have code coverage reports for Rust.
https://www.collabora.com/news-and-blog/blog/2021/03/24/rust-integrating-llvm-source-base-code-coverage-with-gitlab/ is what I based the mwbot-rs pipeline off of https://gitlab.wikimedia.org/repos/mwbot-rs/rust-ci-pipeline/-/blob/main/jobs.yml#L132 and it mostly works.
There's also https://github.com/actions-rs/grcov which is unmaintained/abandoned but some of the issues might have useful pointers as well.
The text was updated successfully, but these errors were encountered: