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": [