grunt-phpunit icon indicating copy to clipboard operation
grunt-phpunit copied to clipboard

Allow define options for colors

Open estevejm opened this issue 10 years ago • 1 comments

From PHPUnit 4.4 colors output was modified to only output colors when executed from terminal (PR), so this task doesn't display colors for versions 4.4 and 4.5 (current stable version).

For 4.6 (current beta) support for colors options has been added (PR), so we can force to output colors when running PHPUnit from Grunt.

We need to give support to the options colors to have the parameters "never", "auto" and "always".

Maybe a good solution would be to keep with the boolean flag in the grunt-phpunit task but with the following map:

  • colors: false adds the option --colors=never
  • colors: true adds the option --colors=always

This should be enough for us, "auto" and "never" has the same outcome.

estevejm avatar Feb 19 '15 09:02 estevejm

+1 for this. Any walkarounds @estevejm?

AchoArnold avatar Sep 07 '15 10:09 AchoArnold