Skip to content

Commit cd626eb

Browse files
committed
Generate coverage report
1 parent 736e7a2 commit cd626eb

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

composer.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"description": ".env editor library",
44
"type": "library",
55
"keywords": [
6-
"env", "env-editor", "dot-env", "env-php", "env-loader", "env-writer"
6+
"env",
7+
"env-editor",
8+
"dot-env",
9+
"env-php",
10+
"env-loader",
11+
"env-writer"
712
],
813
"license": "MIT",
914
"authors": [
@@ -29,6 +34,10 @@
2934
"phpunit/phpunit": "9.5"
3035
},
3136
"scripts": {
32-
"test": "phpunit"
37+
"test": "phpunit",
38+
"test:coverage": [
39+
"@putenv XDEBUG_MODE=coverage",
40+
"phpunit --coverage-html coverage --coverage-clover=coverage/clover.xml"
41+
]
3342
}
3443
}

coverage/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
*/
3+
!.gitignore

0 commit comments

Comments
 (0)