Skip to content

Commit 890c2fa

Browse files
testing: rm istanbul, add nyc (#2277)
1 parent e8c2393 commit 890c2fa

3 files changed

Lines changed: 32 additions & 17 deletions

File tree

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
**/*.log
2+
**/node_modules
3+
.coverage
4+
.nyc_output
5+
docs/json
16
packages/google-cloud/README.md
27
packages/*/AUTHORS
38
packages/*/CONTRIBUTORS
49
packages/*/COPYING
5-
**/node_modules
6-
**/.coverage/*
7-
docs/json
8-
*.log

.istanbul.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"glob": "^5.0.9",
1414
"globby": "^3.0.1",
1515
"is": "^3.1.0",
16-
"istanbul": "^0.4.5",
1716
"jscs": "^2.1.1",
1817
"jshint": "^2.9.1",
1918
"lodash.flatten": "^4.3.0",
2019
"lodash.template": "^4.3.0",
2120
"mitm": "^1.1.0",
2221
"mocha": "^2.5.3",
2322
"multiline": "^1.0.2",
23+
"nyc": "^10.3.0",
2424
"package-json": "^2.4.0",
2525
"propprop": "^0.3.1",
2626
"semver": "^5.3.0",
@@ -40,9 +40,32 @@
4040
"unit-test": "mocha --timeout 5000 --bail packages/*/test/*.js",
4141
"snippet-test": "mocha --timeout 5000 --bail test/docs.js",
4242
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
43-
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts packages/*/test/*.js -R spec",
44-
"cover-html": "istanbul cover node_modules/mocha/bin/_mocha --report html -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts packages/*/test/*.js -R spec",
45-
"coveralls": "npm run cover && cat ./.coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
43+
"cover": "nyc --reporter=lcov --reporter=html mocha --no-timeouts packages/*/test/*.js",
44+
"coveralls": "nyc --reporter=text-lcov mocha --no-timeouts packages/*/test/*.js | ./node_modules/coveralls/bin/coveralls.js"
45+
},
46+
"nyc": {
47+
"report-dir": "./.coverage",
48+
"exclude": [
49+
"packages/*/src/*{/*,/**/*}.js"
50+
],
51+
"watermarks": {
52+
"branches": [
53+
95,
54+
100
55+
],
56+
"functions": [
57+
95,
58+
100
59+
],
60+
"lines": [
61+
95,
62+
100
63+
],
64+
"statements": [
65+
95,
66+
100
67+
]
68+
}
4669
},
4770
"license": "Apache-2.0",
4871
"engines": {

0 commit comments

Comments
 (0)