When I run Behat tests directly from Windows PowerShell, the output is formatted with colour:
But when I run the php script runbehat.php
below with the command php runbehat.php
:
<?php
echo system(__DIR__.'/bin/behat --profile local');
it produces:
How can I make it display in colour?
Add the
--colors
option.From the behat's help that you can show using
-h
: