Skip to content

Commit 639bc0f

Browse files
committed
enable local code-coverage reporting
1 parent 7d70cb7 commit 639bc0f

File tree

3 files changed

+602
-4
lines changed

3 files changed

+602
-4
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MS-RL",
55
"description": "a lightweight PHP-backend integration for the Vite frontend build tool",
66
"scripts": {
7-
"test": "php test/test.php"
7+
"test": "XDEBUG_MODE=coverage php test/test.php"
88
},
99
"autoload": {
1010
"psr-4": {
@@ -15,6 +15,7 @@
1515
"php": ">=8.1"
1616
},
1717
"require-dev": {
18-
"mindplay/testies": "^1.1"
18+
"mindplay/testies": "^1.1",
19+
"phpunit/php-code-coverage": "^10"
1920
}
2021
}

0 commit comments

Comments
 (0)