How to disable colors in Laravel PHPUnit task?

I am testing on Windows, and the command line does not work so well with the ANSI color codes that appear by default. How to turn off the color display when I use Laravel?

+6
source share
2 answers

The file \ laravel \ cli \ tasks \ test \ stub.xml is used to create the PhpUnit configuration file for tests. (A new configuration file is generated and deleted each time you start the artisan testing task.) To disable colors, change the first line of stub.xml from <phpunit colors="true" to <phpunit colors="false" (for Laravel 3)

Update: For Laravel 4, the file is phpunit.xml and is located in the root folder. The change has not yet been set colors="false" .

+13
source

You can add colors to the Windows command line. It is great for detecting errors and success. I followed this http://softkube.com/blog/ansi-command-line-colors-under-windows/

+2
source

Source: https://habr.com/ru/post/917324/


All Articles