Skip to content
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

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

Open
bert-w opened this issue Sep 16, 2024 · 1 comment
Open

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

bert-w opened this issue Sep 16, 2024 · 1 comment
Labels

Comments

@bert-w
Copy link

bert-w commented Sep 16, 2024

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

@bert-w bert-w added the bug label Sep 16, 2024
@DannyvdSluijs
Copy link
Contributor

DannyvdSluijs commented Oct 9, 2024

Seems my report in #1206 seems to be similar (but not the same) to this report. As this is also about using --parallel and another cli option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants