Skip to content

Restart PHP process when code coverage data collection/processing is requested, Xdebug is loaded, but its mode is wrong #6233

Open
@staabm

Description

@staabm

when I run vendor/bin/phpunit --coverage-html coverage_report phpunit is running and happily is working thru the test-suite, while after waiting for minutes for its completion it reports:

There was 1 PHPUnit test runner warning:

1) XDEBUG_MODE=coverage (environment variable) or xdebug.mode=coverage (PHP configuration setting) has to be set

when the xdebug extension is already loaded, but in the wrong mode, couldn't phpunit restart itself with a proper XDEBUG_MODE=coverage set, so I don't need to wait for the whole testsuite to finish and re-run it manually?

this would be useful, as I usually have xdebug loaded in debugging mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions