-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
--colors=never is not respected #49
Comments
@maks-rafalko Maybe is better just change the printer to the default phpunit printer. what do you think? |
|
To launch Pest with default phpunit printer, I usually do : vendor/bin/pest --printer \\PHPUnit\\TextUI\\DefaultResultPrinter Just try with Anyway, to support in in pest, this could be done: // src/Actions/AddsDefaults.php
if (!array_key_exists('printer', $arguments)) {
- $arguments['printer'] = new Printer();
+ $arguments['printer'] = new Printer(null, $arguments['verbose'] ?? false, $arguments['colors'] ?? 'always');
} |
Thank you! |
Hi, I'm facing a problem when using pest on Windows. When I run Just to make it clear, if I run from a terminal that supports colors, it will print the colors correctly, the issue here is the fact that |
@crossworth, I think this is actually an issue with Collision rather than Pest. |
When I run
Pest continues printing ascii chars that produces the following text:
For example, when I use
--colors=never
with PHPUnit, it correctly disables and prints just raw text:PHPUnit 9.1.5 by Sebastian Bergmann and contributors. . 1 / 1 (100%) Time: 00:00.046, Memory: 6.00 MB
Related to #4 (In Infection PHP, we need a "raw" output without all those colours for terminal to parse the text);
Even without Infection, it's still the issue as some CI do not support such output as well
The text was updated successfully, but these errors were encountered: