-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 the codecov badge #1445
Add the codecov badge #1445
Conversation
I'm for this ... but, code coverage calculation is, at the moment, sub-par. I'm experimenting with I think I'm going to have to include the workspace packages as modules to get coverage information generated for them. Any ideas? |
@rivy my team at Mozilla developed grcov. If you have more details, they can probably help :) |
I've got code coverage building and sending coverage reports for macos, windows, and unix platforms (see https://github.com/rivy/rs.coreutils/runs/572806040?check_suite_focus=true; built from f695cdc). But, it's only generating results for I believe than the various utility packages in the workspace will have to somehow be pulled in as modules before any code coverage can be accomplished on them. I'm not sure how to do that and preserve the current build framework. |
After hacking on this for a day or so, I've discovered that the coverage instrumentation needs source files to be in the src directory (even for the workspace sub-packages) in order to actually evaluate the lines. I don't know whether it's the compiler instrumentation or I'm, currently, in the midst of refactoring all the sub-package files to be in their respective src directories onto a test branch. I'll keep you updated on the progress and hopefully success of this change. Timeline is probably towards the end of the weekend. |
After a reorganization of the source files into more "standard" locations and hacking the coverage filenames, I'm getting an improved coverage report. original @ https://codecov.io/gh/rivy/rs.coreutils/tree/7c0132354576701771dd29bad404b4106a50669b Would you mind taking a look and commenting? |
Argh! That was a day-long hack task! Take a look at rivy:rust.coreutils/rf.reorg-codecover and the corresponding CodeCov report. My plan is to release a PR for it Monday right after I merge #1449. Sound good? |
this is great, bravo :) I would ignore tests/ as it isn't super interesting info. |
I was going to take out the "tests" directory, but then I found a bug by reviewing the uncovered lines. The uncovered section shown at https://codecov.io/gh/rivy/rs.coreutils/src/7f81bf3de1a2df3362f9fe2506ad7d00e8b7feb3/tests/test_du.rs#L16...32 points out that
|
55% coverage, well done :) |
👍 I'm working on a quick PR to condense redundant CI testing on AppVeyor and Travis to reduce the total time to success/failure for a given commit. It should come down to a total of about 15 minutes (median) time to success/fail (from the median of about an hour that it's taking now). I'm also attempting a CodeCov configuration change to make it informational (ie, never fail the build). |
I added the commits for condensed CI and fixed CodeCov to my already open PR #1480. |
No description provided.