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

publish code coverage on release build #578

Merged
merged 6 commits into from
Jul 5, 2021
Merged

publish code coverage on release build #578

merged 6 commits into from
Jul 5, 2021

Conversation

clux
Copy link
Member

@clux clux commented Jul 4, 2021

Tried the tarpaulin action for a simple code coverage, effectively running cargo tarpaulin --all.

Results at https://coveralls.io/github/clux/kube-rs Coverage Status.
Obviously a bit low because it's not counting actually running the examples (which requires a cluster). Maybe there's a better way to do that.
I have only used coveralls before, so there may be better solutions. This is OK, not amazing for rust, but you can browse around and see. Possibly codecov.io is better.

Run took about 7minutes, only wanted this as a quick thing to look at every now and then so didn't bother with caching:
https://github.com/clux/kube-rs/runs/2985127374?check_suite_focus=true
figured for now, once per release is better than nothing, don't really feel like we need the whole "your code coverage decreased" notifications on prs, but it's nice to have an lcov browser.

also bundled in with this is a clippy change

clux added 6 commits July 4, 2021 21:58
@clux clux merged commit 0f47ef2 into master Jul 5, 2021
@clux clux deleted the codecov branch July 5, 2021 08:41
@clux clux mentioned this pull request Dec 2, 2021
6 tasks
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.

1 participant