From 665a157d60533223f4adc06f51a84a23c46dafd4 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Fri, 1 Jul 2016 10:27:39 -0700 Subject: [PATCH] only run the tests when trying to make a new version (#109) --- README.md | 8 ++++++++ package.json | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca4bec2..451c823 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ - [Errors](#errors) - [FAQ](#faq) - [Installation](#installation) +- [Contributing](#contributing) - [See Also](#see-also) - [License](#license) @@ -840,6 +841,13 @@ Sure. $ npm install choo ``` +## Contributing +Browser tests can be run with the right credentials via the `npm run test:browser` +command. This will be run automatically when `npm version` is executed. + +You may skip the tests by providing `SKIP_TEST=true` when running the version +command. + ## See Also - [budo](https://github.com/mattdesl/budo) - quick prototyping tool for `browserify` diff --git a/package.json b/package.json index 9261da4..98b920b 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "test:server:cov": "standard && npm run deps && NODE_ENV=test istanbul cover tests/server/*", "test:browser": "standard && npm run deps && NODE_ENV=test zuul tests/browser/*", "test:browser:local": "standard && npm run deps && NODE_ENV=test zuul --local 8080 -- tests/browser/*", - "test:cov": "npm run test:server:cov && npm run test:browser", - "test": "npm run test:server && npm run test:browser" + "test:cov": "npm run test:server:cov", + "preversion": "if [ ! -z $SKIP_TEST ]; then npm run test:browser; fi", + "test": "npm run test:server" }, "repository": "yoshuawuyts/choo", "keywords": [