Skip to content

Commit 9f01d1c

Browse files
authored
build: add code coverage in GitHub (#1894)
1 parent 1bc43f4 commit 9f01d1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
3434
"system-test": "mocha build/system-test --timeout 1600000",
3535
"cleanup": "mocha scripts/cleanup.js --timeout 30000",
36-
"test": "c8 mocha build/test build/test/common",
36+
"test": "mocha build/test build/test/common",
3737
"ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb",
3838
"fix": "gts fix",
3939
"clean": "gts clean",
@@ -47,7 +47,8 @@
4747
"benchwrapper": "node bin/benchwrapper.js",
4848
"prelint": "cd samples; npm link ../; npm install",
4949
"precompile": "gts clean",
50-
"compile-protos": "compileProtos src"
50+
"compile-protos": "compileProtos src",
51+
"coverage": "c8 mocha build/test build/test/common && c8 report --check-coverage"
5152
},
5253
"dependencies": {
5354
"@google-cloud/common": "^4.0.0",

0 commit comments

Comments
 (0)