Skip to content

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

@bert-w

Description

@bert-w

What Happened

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

  • the --colors=never option is being disregarded
  • the --coverage-text is disregarded
    • Note: without an added filename, this should output to the standard output. This seems broken in the non-parallel setup
    • When passing a filename like --coverage-text=output.txt, it DOES seem to write the correct output format in this file

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions