Skip to content

Commit

Permalink
updated docs on coverage command
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Welch committed Sep 30, 2016
1 parent 3f047d3 commit 968b509
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/FAQ.md
Expand Up @@ -216,11 +216,10 @@ Install the [Redux devtools extension](https://chrome.google.com/webstore/detail
Hot reloading doesn't always play nicely with stateless functional components at this time. [This is a known limitation that is currently being worked](https://github.com/gaearon/babel-plugin-react-transform/issues/57). To avoid issues with hot reloading for now, use a traditional class-based React component at the top of your component hierarchy.

### How do I setup code coverage reporting?
Using the `npm run test:cover` command to run the tests, building a code coverage report. The report is written to `coverage/index.html`. A quick way to check coverage is:
Using the `npm run test:cover` command to run the tests, building a code coverage report. The report is written to `coverage/index.html`. Slingshot simplifies provides a script for this:

```bash
npm run test:cover
open ./coverage/index.html
npm run open:cover
```

You can add code coverage metrics to your `README.md` file and pull by integrating with [Coveralls](https://coveralls.io/).
Expand Down

0 comments on commit 968b509

Please sign in to comment.