Reputation: 299
how can I enable a colored output for my tests?
I tried the command phpunit --color=always file.php
, but it did not work!
Thanks for help!
Upvotes: 8
Views: 3552
Reputation: 51
If you didn't get color then you can override the phpunit.xml
file on your main file.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
</phpunit>
Have a good day.
Upvotes: 5
Reputation: 7249
Windows command line does not natively support colors. Download Git for Windows, run 'phpunit' from the command line in the Bash shell, and you will get colors.
Upvotes: 0