Closed shlomif closed 1 year ago
If the ok's should be green, shouldn't the fails be red?
(I'm not sure what I think of this in general, I think I'd like to hear some other people's opinions on this)
If the ok's should be green, shouldn't the fails be red?
Agreed - it would look really snazzy if 'not ok' was red, and 'skipped' was yellow!
@Leont @karenetheridge : I am already seeing the "Dubious" messages on test scripts failures in red, even without my changes.
@Leont @karenetheridge : ping.
Ping.
How about thinking of the background? How does the output look like on a non-black terminal?
@andk : the colours are configurable using env vars and can be completely disabled, so it should not be an issue.
Configurability is one thing, good defaults is another to generate a useable interface. The poor user that experiences green on green has to debug the situation and find the culprit. He has a huge disadvantage compared to the author of the interface.
@andk: I've checked now and apparently prove
does colour the output by default (even without this pullreq) and so will be affected by the issue you brought. Perhaps a separate PR is in order to add "on_black" to the default colours - see https://metacpan.org/pod/Term::ANSIColor .
@Leont @karenetheridge : ping.
Ping again. it has been 2 years.
Ping again. it has been 2 years.
I think this has suffered from PTS being cancelled two years in a row. I would really love some more opinions from fellow toolchainers on what behavior we want here.
I just came here to say that improved colorized output in prove
would be fantastic.
Sorry I let this slack so long. Can you rebase on top of master (so it at least has a CI run), then I'll merge it.
FWIW I have a highlight script that I use with great success with prove
, and anything else I want to colorize.
prove -vl t/01-general.t | highlight -f 'green,^ok|pass' -f 'red,(faile?d?|^not ok)' -f '75,all tests.*'
I use that for anything that doesn't have good coloring built in. Having prove
do it's own coloring would be ideal.
Sorry I let this slack so long. Can you rebase on top of master (so it at least has a CI run), then I'll merge it.
done. thanks!
Using the SUCCESS color.
By inspiration from https://metacpan.org/release/Test-Run-Plugin-ColorFileVerdicts and ultimately from https://wiki.python.org/moin/TestOob .
See http://www.shlomifish.org/Files/files/images/tap-harness-color-ok-traces.png for a screenshot.
I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of:
The CC0 / Public Domain - https://creativecommons.org/choose/zero/ .
The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License
The default licence of your project
The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher
The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher
Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses
The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later
The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later
The https://en.wikipedia.org/wiki/ISC_license
The https://opensource.org/licenses/BSD-2-Clause
Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission.