Closed f3l1x closed 7 years ago
detecting support for colors always was and likely always will be magic
Tester detects if STDOUT is a terminal. If not, colors are disabled.
First guess... phpcs ignores it. Second guess... composer uses probably symfony EventDispatcher and it somehow redirects stdout, so stdout is not a terminal.
Maybe I'm wrong, I don't know mentioned tools source.
You can add --colors
for tester to force colors usage.
Command tester --colors
works like a charm! Thank you.
I do not know if it's bug or it's a feature. :question:
composer run-script nette-tester
strips colors in output. On the other handcomposer run-script codesniffer
does not.Name of the scripts are fake, just for demonstration.
CodeSniffer: https://travis-ci.org/contributte/logging/jobs/181436162#L222
NetteTester: https://travis-ci.org/contributte/logging/jobs/181436162#L244
Sections shoud be green.