Skip to content

Commit

Permalink
README and comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pheuter committed Mar 21, 2015
1 parent 3aa6bee commit 9e018a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ A minimal skeleton for building testable React apps using ES6.
- [server](#server)
- [build](#build)
- [test](#test)
- [test-cross-browser](#test-cross-browser)
- [coveralls](#coveralls)
- [clean](#clean)
- [Changelog](#changelog)
Expand Down Expand Up @@ -111,6 +112,16 @@ $ npm test

Leverages [Karma](http://karma-runner.github.io/0.12/index.html) to run through the test suite using [PhantomJS](http://phantomjs.org/) and generate code coverage reports.

### test-cross-browser

```sh
$ npm run test-cross-browser
```

**Input:** `test/main.js`

Runs the unit test suite against various browsers using the [Sauce Labs](https://saucelabs.com/) automated cross-browser testing tool.

### coveralls

```sh
Expand Down
6 changes: 2 additions & 4 deletions karma.cross-browser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ module.exports = function(config) {
},

/**
* We want to run the tests using the PhantomJS headless browser.
* This is especially useful for continuous integration.
* We want to use the Sauce Lab browsers defined above.
*/
browsers: Object.keys(customLaunchers),

Expand All @@ -51,8 +50,7 @@ module.exports = function(config) {
frameworks: ['mocha', 'sinon-chai'],

/**
* After running the tests, return the results and generate a
* code coverage report.
* Integrate with the sauce labs reporter.
*/
reporters: ['dots', 'saucelabs'],

Expand Down

0 comments on commit 9e018a1

Please sign in to comment.