mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-03-12 10:00:59 +00:00
fix: switch from xdebug to pcov for code coverage (#101)
* fix: remove xdebug-specific settings from phpunit.xml and composer.json Remove `<ini name="xdebug.mode" value="coverage"/>` from phpunit.xml and `XDEBUG_MODE=coverage` prefix from composer scripts. These fail when xdebug is not installed and are unnecessary when using PCOV for code coverage. * ci: switch from xdebug to pcov for code coverage Both test matrix and coverage jobs now use `coverage: pcov`, matching the existing test-coverage.yaml workflow. PCOV is faster for coverage-only use and avoids the xdebug dependency conflict. * build: replace xdebug with pcov in Docker setup Switch Docker development environment from xdebug to pcov for code coverage and remove the XDEBUG_MODE environment variable from docker-compose.yml. Standardizes on pcov across all environments.
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
"@lint:tool:md:fix",
|
||||
"@lint:tool:ec:fix"
|
||||
],
|
||||
"test": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text",
|
||||
"test:coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=coverage",
|
||||
"test:ci": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --teamcity --coverage-clover=coverage.xml",
|
||||
"test": "./vendor/bin/phpunit --coverage-text",
|
||||
"test:coverage": "./vendor/bin/phpunit --coverage-text --coverage-html=coverage",
|
||||
"test:ci": "./vendor/bin/phpunit --teamcity --coverage-clover=coverage.xml",
|
||||
"lint:tool:ec": "./vendor/bin/ec *.md *.json *.yml *.yaml *.xml *.php",
|
||||
"lint:tool:ec:fix": "./vendor/bin/ec *.md *.json *.yml *.yaml *.xml *.php --fix",
|
||||
"lint:tool:phpcs": "./vendor/bin/phpcs src/ tests/ examples/ config/ rector.php --warning-severity=0",
|
||||
|
||||
Reference in New Issue
Block a user