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

Add histograms to labels / coverage #289

Merged
merged 1 commit into from May 12, 2019

Conversation

jacobstanley
Copy link
Member

@jacobstanley jacobstanley commented May 11, 2019

This PR adds unicode histograms / percentage bars to the new labelling / coverage system. Not sure if I have quite the right balance yet, but time will tell.

For labels with coverage requirements, the minimum required coverage is shown on the right hand side of the histogram, along with a tick or a cross indicating whether we met the requirement. We also highlight visually (with red dots) the additional coverage required to make it to the requirement, not sure if I like this yet but we'll give it go.

Shame 🇦🇺 🇬🇷 haven't won any world cups 😢

@jacobstanley jacobstanley merged commit 760d27f into hedgehogqa:master May 12, 2019
@jacobstanley jacobstanley deleted the topic/bar-chart-labels branch May 12, 2019 21:03
in
bar ('█', ['·', '▏', '▎', '▍', '▌', '▋', '▊', '▉'])

-- FIXME Maybe this should be configurable?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it might be a good idea to have this configurable, @jacobstanley.

I've noticed that on (older) Windows machines without WSL/WSL2 and/or earlier versions of Windows 10 2004 (build 19041) the current bars won't render correctly (the last one, basically, '▉').

OTOH, this renders just fine:

--bar ('⣿', ['·', '⡀', '⡄', '⡆', '⡇', '⣇', '⣧', '⣷'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants