GeezerVison is showing github.com — Merge pull request #1613 from callmehiphop/test-docs-npm-script · googleapis/google-cloud-node@a6410a2
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: docs/json/master/speech/.gitkeep Collapse file
Copy file name to clipboardExpand all lines: package.json +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
31 | 31 | "docs": "node ./scripts/docs/packages.js", |
32 | 32 | "bundle": "node ./scripts/docs/bundle.js", |
33 | 33 | "lint": "jshint scripts/ packages/ system-test/ test/ && jscs packages/ system-test/ test/", |
34 | | - "test": "npm run docs && mocha --timeout 5000 --bail test/docs.js packages/*/test/*.js", |
| 34 | + "test": "npm run docs && npm run snippet-test && npm run unit-test", |
| 35 | + "unit-test": "mocha --timeout 5000 --bail packages/*/test/*.js", |
| 36 | + "snippet-test": "mocha --timeout 5000 --bail test/docs.js", |
35 | 37 | "system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail", |
36 | 38 | "cover": "istanbul cover _mocha --report lcovonly -x 'packages/*/src/v*/*.js' -- --no-timeouts --bail packages/*/test/*.js -R spec", |
37 | 39 | "coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" |
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/helpers.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -178,7 +178,7 @@ Module.prototype.runUnitTests = function() { |
178 | 178 | */ |
179 | 179 | Module.prototype.runSnippetTests = function() { |
180 | 180 | process.env.TEST_MODULE = this.name; |
181 | | - run('mocha test/docs.js', { cwd: ROOT_DIR }); |
| 181 | + run('npm run snippet-test', { cwd: ROOT_DIR }); |
182 | 182 | delete process.env.TEST_MODULE; |
183 | 183 | }; |
184 | 184 |
|
|