gotestyourself / gotestyourself/gotestsum

Format option proposal: `pkgname-coverage-graph`

Open
#302 5 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
2.7k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

I like to work with coverage, and I think it would be a great addition to have an output format, that would help identify which packages are badly covered, at a glance.

The format would be based on the existing `pkgname` one. Here is an example of what it could look like:

![image](https://user-images.githubusercontent.com/83596426/216705165-14d3c4d8-56f5-4a15-9c23-5892b205cfc0.png)

Thoughts about the global idea ? I drafted the presentation and colors so it might be improved. I like the more graphical aspect for coverage. It could also work easily when coverage is not enabled:

![image](https://user-images.githubusercontent.com/83596426/216705865-05a2f6a4-0ea1-45f7-bb1f-d007fcf7ce65.png)

The end of the input could look like `pkgname`. A line could also show the global test coverage.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing `pkgname` output format and how coverage results are presented. Clarify the proposed graph layout, colors, input ending, and global coverage line before implementation. Done means an agreed `pkgname-coverage-graph` format that also behaves sensibly when coverage is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.