-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
cmd/cover: add number of uncovered lines #31519
Comments
Change https://golang.org/cl/172424 mentions this issue: |
There are external tools such as IDEs that read this file format, so this would be a breaking change to them. Regardless of its own merits, a change like this needs to be rolled out carefully. |
Thanks for the reply @robpike! Note that I'm not talking about changing the format of the coverage itself, only that of the HTML file produced by |
Ah, I misunderstood. I don't know if IDEs read the HTML, but I doubt it. |
Same here, I believe it's reasonably safe to change the HTML. |
CC @ianthehat |
I would be very surprised if any tool/integration is attempting to parse the HTML (I don't know of one), and I don't think it would be sensible to refuse changes if that was the only reason. The HTML output should never be a stable supported API! |
@ianthehat Totally agree... I think the only "interface" the HTML should fulfill is to be valid HTML ;). |
The coverage HTML file generated by
go tool cover -html=coverage.out
only displays the coverage percentage per package; as a result it's hard to identify, by just glancing at the list of packages and their coverage, where the coverage is lacking because small packages and giant packages are treated the same.This is a feature request to add, in addition to the coverage percentage, the number of lines that are uncovered: this will enable to see what packages are big contributors to the lack of coverage.
The text was updated successfully, but these errors were encountered: