about summary refs log tree commit diff stats
path: root/tests_integration
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-27 13:35:04 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-27 13:35:04 +0300
commitec2de7ecd2f0288e4d965148b9c6a8c1983333e9 (patch)
tree8dbef820ca9872c616d9486e36d2c07150e1c7c5 /tests_integration
parent8659f5950c3d794b78ece1fd7677dd3992b6d5b5 (diff)
downloadthe-epube-ec2de7ecd2f0288e4d965148b9c6a8c1983333e9.tar.gz
the-epube-ec2de7ecd2f0288e4d965148b9c6a8c1983333e9.tar.xz
add coverage support
Diffstat (limited to 'tests_integration')
-rw-r--r--tests_integration/run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests_integration/run.sh b/tests_integration/run.sh
index 9508aec..542cc2a 100644
--- a/tests_integration/run.sh
+++ b/tests_integration/run.sh
@@ -162,6 +162,7 @@ export OTEL_METRICS_EXPORTER=none
 export OTEL_LOGS_EXPORTER=none
 export OTEL_PHP_DISABLED_INSTRUMENTATIONS=pdo,guzzle,psr18,slim,io
 export IS_INTEGRATION_TESTING=true
+export XDEBUG_MODE=coverage
 
 $PHP_BIN ./update.php --update-schema=force-yes
 $PHP_BIN ./update.php --user-add "test:test"
@@ -219,6 +220,6 @@ export API_URL="http://localhost:$PHP_PORT1/backend.php"
 export APP_URL="http://localhost:$PHP_PORT2"
 
 # Run PHPUnit with the integration testsuite
-"$PHP_BIN" vendor/bin/phpunit \
+"$PHP_BIN" -d zend_extension=xdebug vendor/bin/phpunit \
 	--configuration "$PROJECT_ROOT/phpunit.integration.xml" \
 	"${PHPUNIT_ARGS[@]+"${PHPUNIT_ARGS[@]}"}"