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

proposal: cmd/covdata: support computing total coverage over all packages #66506

Open
mitar opened this issue Mar 24, 2024 · 1 comment
Open
Labels
Milestone

Comments

@mitar
Copy link
Contributor

mitar commented Mar 24, 2024

Proposal Details

Currently go coverage computes coverage per package. You can use -coverpkg to get coverage to also include cross-package calls, but reported coverage is still per package.

I would suggest to add a flag like -total to tool covdata percent to compute coverage across all packages (potentially still restricted using -pkg). Literally, "number of lines of code called during tests across all packages" / "number of lines of code across all packages".

@mitar mitar added the Proposal label Mar 24, 2024
@gopherbot gopherbot added this to the Proposal milestone Mar 24, 2024
@mitar
Copy link
Contributor Author

mitar commented Mar 24, 2024

(attn @thanm)

@seankhliao seankhliao changed the title proposal: cmd/go: add support to "tool covdata percent" to compute total coverage over all packages proposal: cmd/covdata: support computing total coverage over all packages Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Incoming
Development

No branches or pull requests

2 participants