[4.x] Text coverage not compatible with `coverage-php`
@emmadesilva is already working on this.
Since Apr 10, 2026.
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pestphp/pest
-
[Bug]: [mutate] Windows: @pest-mutate-ignore comments land on line 1 in files with LF line endings Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100