Skip to content

proposal: cmd/cover: add HTML summary page for files and respective coverage percentages #75770

@Apoorvgarg-creator

Description

@Apoorvgarg-creator

Proposal Details

I propose to improve the HTML test coverage reports by:

  • a new summary page listing all files with their corresponding coverage percentages
  • adding line numbers in the file view for easier debugging and a better user experience
  • Adding total test coverage for the project
  • If Backward compatibility is required, make the summary page and line numbers optional and configurable through CLI arguments.

Updates:

  • We can also add support for line number toggle in the HTML.

Pull Request Change - https://go-review.googlesource.com/c/go/+/709375
This change currently doesn't handle backward compatibility as of now, but this is upto discussion.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions