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

add coverage workflow #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieleades
Copy link
Contributor

adds a coverage workflow using codecov.

Coverage in this repo is pretty low, so the intention would be for this workflow to be purely informational, and provide an opportunity to push PRs to at least improve coverage over time.

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@28a8e19). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #158   +/-   ##
========================================
  Coverage          ?   1.99%           
========================================
  Files             ?      11           
  Lines             ?    1151           
  Branches          ?       0           
========================================
  Hits              ?      23           
  Misses            ?    1128           
  Partials          ?       0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28a8e19...16e39ac. Read the comment docs.

@pksunkara
Copy link
Collaborator

Unfortunately until we have test suite (integration which actually tests the terminal), we can't write any tests and thus no coverage.

  1. https://github.com/taiki-e/cargo-llvm-cov is better than tarpualin (due to experience)
  2. We will probably not go with codecov.io and instead I can ask @mitsuhiko to setup coveralls.

@danieleades
Copy link
Contributor Author

danieleades commented Dec 7, 2021

Unfortunately until we have test suite (integration which actually tests the terminal), we can't write any tests and thus no coverage.

exactly. the best time to set up coverage monitoring is before you implement the tests

  1. https://github.com/taiki-e/cargo-llvm-cov is better than tarpualin (due to experience)

i don't know anything about cargo-llvm-cov, but I do know that tarpaulin has come a long way in recent times. Might be worth revisiting.

  1. We will probably not go with codecov.io and instead I can ask @mitsuhiko to setup coveralls.

i don't really have a preference here. what does coveralls give you that codecov doesn't?

@pksunkara
Copy link
Collaborator

i don't know anything about cargo-llvm-cov, but I do know that tarpaulin has come a long way in recent times. Might be worth revisiting.

It's still bad. Especially not running on mac. llvm-cov is probably also a better implementation instead of tarpaulin's complicated one.

what does coveralls give you that codecov doesn't?

Codecov doesn't allow us to compare the changes of coverage in PR. The web app is broken. The only good thing about it is forwarding flags feature. But we don't need really need that in this repo. Thus, coveralls is pretty sufficient.

@danieleades
Copy link
Contributor Author

Codecov doesn't allow us to compare the changes of coverage in PR

what do you mean by that? Codecov certainly does have this feature. It's the main purpose. Unless I'm misunderstanding?

The only reason the coverage diff isn't shown on the report in this PR is because there's no coverage information for the base commit of the diff (it's never been run on master).

Either way, it's not a hill I plan to die on. My bias towards tarpaulin+codecov is that i have a ready-made workflow i was able to copy and paste. If you want to create one using your preferred tools, go for it.

Any coverage is better than none. And the best time to start tracking coverage is before you start adding tests.

@pksunkara
Copy link
Collaborator

Hmm.. The only experience with codecov is at work. And the "Compare" tab has been broken for more than an year and not showing anything. But it looks it's an issue on our side rather than codecov being completely broken for everyone. In that case, I am okay with codecov.

@pksunkara pksunkara added this to the 0.11.0 milestone Apr 11, 2023
@pksunkara pksunkara modified the milestones: 0.11.0, 0.12.0 Sep 21, 2023
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.

3 participants