Subject: | colour options in rcfile ignored |
For some reason I haven't been able to work out, the colours specified in the RC file don't make it to the test output.
This may be "by design", but I can't tell where.
It would be nice to have a way to enable colours.
Though there's not many ways to know if a target wants colours or not without magic.
You could use Term::ANSIColor which has a way to opt-out , or you could perhaps sniff HARNESS_OPTS="" for "c" being specified and enable colours if that is present.
But this very much does give me Colors and Test::More does not try to suppress them:
perl -MTest::More -E'diag(qq{\e[34mhello\e[0m}); pass(q[fake]); done_testing;'