-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colored output does not work anymore #1690
Comments
This has already been discussed. Look at all the conversations on colour. :) |
Thanks for pointers to these issues, but I just noticed another issue: colors are present when PHPUnit is invoked like |
Yes, you must be using a new 4.x version to use "always". |
That version has the old behaviour, where "true" will do the same thing as "always" now does. |
Yes, but isn't it strange that same command triggers different versions of the library? As I said, |
This is unrelated. This is just to do with your system setup. Nothing to do with phpunit. phpunit doesn't determine how to run itself. :) |
When I uninstall system package phpunit command is not recognized. How do you then have it installed? Shell alias? |
Ok, I managed to work around this issue by creating shell alias to |
I' experiencing a similar issue. For one thing, the colors are not displayed any more (despite Example:
Only with the suggested workaround of calling |
Sorry, @mzur, but it appears that your PHP / PHPUnit environment is broken (mixed versions of PHPUnit). What you are posting does not make any sense. |
@mzur I had the same issue, you probably have installed PHPUnit both as a system package (apt-get or something) and as a composer package in the project directory. Purge the system package and run |
@thunderer That'll do but it's kind of a workaround still. @sebastianbergmann I've digged a little deeper and it seems you're right. My system package is Thanks to you both :-) |
To anyone who does not have colors with |
Suggested alias also works for me. |
For those on Fedora: |
Since around 4.5 colored output stopped working. It does not matter if it is triggered by
phpunit --colors
switch in console orcolors = "true"
inphpunit.xml
, the line with result (green/yellowOK
/ redFAILURE
) is not colored which makes it harder to quickly assess tests state. What works though is coloring output of--coverage-text
, all lines are working as expected.I couldn't find anything in the project documentation, there are no complaints about the issue on StackOverflow and other such places so I'm wondering what happened? I'm using Ubuntu 14.04 and ZSH shell, PHPUnit is installed through Composer.
The text was updated successfully, but these errors were encountered: