Skip to content

Commit 748feee

Browse files
committed
Add script for testing with coverage.
1 parent b582382 commit 748feee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
vendor
22
node_modules
3+
coverage
34

45
*.old
56
*.old/*

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"scripts": {
1010
"test": "composer exec -v \"phpunit --bootstrap test/bootstrap.php test\"",
11+
"test:cover": "phpdbg -qrr vendor/phpunit/phpunit/phpunit --bootstrap test/bootstrap.php --coverage-html coverage --whitelist src test",
1112
"test:performance": "composer exec -v \"phpunit --bootstrap test/bootstrap.php test/Performance/DBQueryCount.php\"",
1213
"posttest": "php test/cleanup.php",
1314
"release": "node scripts/release.js",

0 commit comments

Comments
 (0)