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: allow code coverage colour configuration #64954
Comments
Thanks for the report @papadeltasierra . I think the team would be open to such a change; would you like to send a CL? |
Apologies for the question that is probably obvious to you but what is a CL? I've come across MRs (Merge Requests) or PRs (Pull Requests) in "GitLand" but never a CL. Thanks. |
Here "CL" is a Gerrit change list -- that's the code review system we use for the Go project. So yes, "send a CL" is equivalent to "send a pull request". |
Is there a sensible place to post ideas on how best to do this? FWIW, my current thoughts are:
One thing I haven't gotten clear yet is how to pass the CSS "map" to the templating functions (I'm new to "Go") so if you have any suggestions... |
Add new flag to supply CSS file for HTML output. Fixes golang#64954
Add new flag to supply CSS file for HTML output. Fixes golang#64954
Add new flag to supply CSS file for HTML output. Fixes golang#64954
Change https://go.dev/cl/555335 mentions this issue: |
Add a new flag to supply CSS file for HTML output. Coverage template appends content of this file to the default styles and thus allows custom styling. Fixes golang#64954
Go version
go version go1.21.4 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Ref: Issue 27553.
Just running normal
go tool cover
and viewing output.What did you expect to see?
I am slightly red/green colour blind and almost always change the default colours of many programs to improve readability (for me - my colleagues might disagree ;-). I never find "grey on black" easy to read and don't really like either the font or the colour scheme for the code coverage.
I read issue 27553 and the comments about CSS being involved but I'm struggling to see how this can easily be changed since it appears to be hard-wired into the output HTML file.
What did you see instead?
It would be nice if the process took a default CSS file that could then be tailored and overridden via a command line parameter so I could use custom colours myself but others can stick with the defaults if they wish.
The text was updated successfully, but these errors were encountered: