loading

Symfony Tests: Enabling Color (colour) Output for Windows

I’ve seen many confusing posts on how to enable colour output for Symfony testing on Windows.

This was pretty straightforward in the end for my Windows 7 x64 machine.

First, download and install Cygwin.  Windows command prompt just won’t do it.

Then go to http://adoxa.110mb.com/index.html and download ANSICON (I used ANSICON 1.32).

Save and extract to C:\ drive, then open command prompt, go to \x64, and type the following:

C:\x64>ansicon.exe -i

Now when you open Cygwin and run tests with or without the –color option, you get your colour output.

symfony-testing-colour-cygwin

Leave a Reply