pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.63k stars 357 forks source link

[Bug]: `--parallel` ignores or changes other commandline arguments #1258

Open bert-w opened 1 month ago

bert-w commented 1 month ago

What Happened

There appears to be some inconsistencies when using --parallel:

How to Reproduce

This outputs WITH colors (incorrect) and WITH coverage text (correct):

 vendor/bin/pest --parallel --colors=never --coverage-text

This outputs WITHOUT colors (correct) and WITHOUT coverage text (incorrect):

 vendor/bin/pest --colors=never --coverage-text

See screenshot:

afbeelding

The code coverage report should always work and have the same output in both commands, being in stdout:

Code Coverage Report:      
  2024-09-16 18:47:59      

 Summary:                  
  Classes:  0.00% (0/419)  
  Methods:  0.00% (0/1734) 
  Lines:    0.00% (0/12906)

Sample Repository

No response

Pest Version

2.35.1 (Same issue in 3.x)

PHP Version

8.2

Operation System

Linux

Notes

No response

DannyvdSluijs commented 1 month ago

Seems my report in https://github.com/pestphp/pest/issues/1206 seems to be similar (but not the same) to this report. As this is also about using --parallel and another cli option.