sail icon indicating copy to clipboard operation
sail copied to clipboard

XDEBUG coverage report does not run outside docker container

Open BigBlockStudios opened this issue 7 months ago • 0 comments

Sail Version

1.37

Laravel Version

11.44

PHP Version

8.3

Operating System

Linux

OS Version

22.04

Description

when running ./sail php artisan test --coverage from my host machine I get an error:

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

if I run php artisan test --coverage inside the docker container, the coverage tests complete without error.

I have checked and double checked the docs even adding a route to check that xdebug is configured

Route::get('/xdebug', function () { xdebug_info(); });

Docker version is 27.5.1

.env

SAIL_XDEBUG_MODE=develop,debug,coverage

/docker/php8.3/php.ini

[xdebug]
xdebug.mode=${XDEBUG_MODE}

Everything appears to be correct.... what could the issue be??

Steps To Reproduce

I've updated the configs and rebuilt sail several times, no changes

BigBlockStudios avatar Apr 29 '25 01:04 BigBlockStudios