user1995781
user1995781

Reputation: 19463

PHPUnit enable Color Output

I am running PHPUnit from command line on Windows 7. I tried to enable color output via phpunit --color. But it still display same, no color output. How can I get color output of PHPUnit from command line on Win7?

Upvotes: 5

Views: 6420

Answers (2)

Andrew Koper
Andrew Koper

Reputation: 7249

Download Git for Windows, run phpunit from the command line in the Bash shell, and you will get colors.

Upvotes: 2

jasir
jasir

Reputation: 1471

You will have to use http://softkube.com/blog/ansi-command-line-colors-under-windows or get some sane console like conemu https://code.google.com/p/conemu-maximus5/

Also, I suggest to download git for windows and use bash as your default shell.

Upvotes: 7

Related Questions