From: Nolan Lawson Date: Thu, 24 Dec 2015 21:51:16 +0000 (-0800) Subject: Document how to test the project X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8a6e3754f3ccfb489da015ede3185033fdc577ae;p=buffer.git Document how to test the project [skip ci] --- diff --git a/README.md b/README.md index 03fb9c0..671607f 100644 --- a/README.md +++ b/README.md @@ -322,12 +322,37 @@ which is included to compare against. | NodeBuffer#writeFloatBE | 135,763 ops/sec | ±0.65% | 96 | | | | | | | +## Testing the project + +First, install the project: + + npm install + +Then, to run tests in Node.js, run: + + npm run test-node + +To test locally in a browser, you can run: + + npm run test-browser-local + +This will print out a URL that you can then open in a browser to run the tests, using [Zuul](https://github.com/defunctzombie/zuul). + +To run automated browser tests using Saucelabs, ensure that your `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environment variables are set, then run: + + npm test + +This is what's run in Travis, to check against various browsers. The list of browsers is kept in the `.zuul.yml` file. + ## JavaScript Standard Style This module uses [JavaScript Standard Style](https://github.com/feross/standard). [![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard) +To test that the code conforms to the style, `npm install` and run: + + ./node_modules/.bin/standard ## credit