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]: Misleading coverage error with read-only vendor #1152

Open
alpha0010 opened this issue May 10, 2024 · 0 comments
Open

[Bug]: Misleading coverage error with read-only vendor #1152

alpha0010 opened this issue May 10, 2024 · 0 comments
Labels

Comments

@alpha0010
Copy link

What Happened

When the vendor directory is not writable by the user executing pest, coverage fails to generate with the confusing message:

WARN Unable to get coverage using Xdebug. Did you set Xdebug's coverage mode?

In my case, Xdebug was correctly configured, just vendor/pestphp/pest/.temp was not writable. So I spent a lot of time looking in the wrong location for the issue.

How to Reproduce

sudo chown -R root.root vendor
vendor/bin/pest --coverage

Sample Repository

No response

Pest Version

2.34.7

PHP Version

8.1.14

Operation System

Linux

Notes

I was executing tests within a docker container.

@alpha0010 alpha0010 added the bug label May 10, 2024
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