Reputation: 14798
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?
Upvotes: 2
Views: 462
Reputation: 1631
Add the --colors
option.
From the behat's help that you can show using -h
:
--colors Force ANSI color in the output. By default color support is
guessed based on your platform and the output if not specified.
Upvotes: 3