Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow handling of color output via environment variable #2662

@jhasse

Description

@jhasse
Q A
PHPUnit version 5.7.19
PHP version 7.1.4
Installation Method Fedora repositories

My build server logs output (therefore it is not a tty), but supports ANSI color codes. I'm using --color=always. Symfony on the other hand uses --ansi. It would be nice to have an environment variable which forces color output, so that I don't have to remember to add the command line flag to every invocation of phpunit.

In order to standardize this, I've created https://bixense.com/clicolors/ which suggest to use CLICOLOR_FORCE for this. This is also shared by CMake, Waf and Apple's command line utilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions