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]: Text coverage not compatible with coverage-php #1160

Open
caendesilva opened this issue May 22, 2024 · 1 comment
Open

[Bug]: Text coverage not compatible with coverage-php #1160

caendesilva opened this issue May 22, 2024 · 1 comment
Labels

Comments

@caendesilva
Copy link

What Happened

Seems to be unable to get serialized test coverage whilst also printing the standard text to console.

# Creates test.cov but gives no text output
vendor/bin/pest --coverage-text --coverage-php=test.cov 

# Prints text, but creates no test.cov due to "WARN  Option --coverage-php cannot be used more than once"
vendor/bin/pest --coverage --coverage-text --coverage-php=test.cov 

How to Reproduce

Fresh laravel new with Pest

Sample Repository

No response

Pest Version

2.34.7

PHP Version

8.3.7

Operation System

macOS

Notes

php -v

PHP 8.3.7 (cli) (built: May 10 2024 12:47:16) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.7, Copyright (c) Zend Technologies
    with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
    with Zend OPcache v8.3.7, Copyright (c), by Zend Technologies
@caendesilva
Copy link
Author

Additionally, and possibly related, when using the PHP coverage, I completely lose ANSI formatting.

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

1 participant