-
Notifications
You must be signed in to change notification settings - Fork 533
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
Add workflow code coverage report and upload #1178
Conversation
Add github workflow to run grcov code coverage over `cargo test` and upload report to codecov.io
Codecov Report
@@ Coverage Diff @@
## 0.4.x #1178 +/- ##
========================================
Coverage ? 88.90%
========================================
Files ? 30
Lines ? 11489
Branches ? 0
========================================
Hits ? 10214
Misses ? 1275
Partials ? 0 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
How does this compare to |
I added
|
Great you looked at both! The highlighted lines in coveralls.io make slightly more sense to me. I suppose it is the same as with benchmarking: you can spend a lot of time trying to get more accurate. But really the useful part is doing a measurement and having something to compare against. The CI run for with grcov for this PR took ca. 5 minutes (https://github.com/chronotope/chrono/actions/runs/5498456361/jobs/10019932092?pr=1178), most of which is spend in |
Is one of them easier to replicate 'at home'? And do we have a place to document how to do so? |
Yep.
I think you're asking "which is easier to use?" ? If so, then |
I prefer cargo-llvm-cov over grcov. It is my impression that coveralls is no longer being actively developed? CodeCov hasn't exactly been without issues but it was recently acquired by Sentry who I have a decent amount of trust in. |
I have no idea about either, but https://coveralls.io/announcements seems pretty active. |
21ddb5e
to
3dc4755
Compare
I changed to use See |
6c4c1af
to
7da1891
Compare
7da1891
to
6db2eb9
Compare
Thanks! |
Add github workflow to run grcov code coverage over
cargo test
and upload report to codecov.ioHere is the report for this commit https://app.codecov.io/github/chronotope/chrono/commit/b46ac6c090f1832e1c73903318098067d471737b/tree
Comparison data is missing because there have been no prior code coverage runs. This URL can be found in workflow grcov, step upload codecov, in the last few logged lines. e.g.
The
README.md
also has a badge+link to the latest codecov.io code coverage report.For some reason, the newly added grcov workflow does not show up in some Actions views. I can find it by clicking Actions (at the top), then click grcov (left-side), then the runs of
grcov.yml
are listed.