update js readme for coverage instructions

Change-Id: If92df49446d4786bc47f3e716647b7f82408680f
Reviewed-on: https://gerrit.instructure.com/84995
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
This commit is contained in:
Steven Burnett 2016-07-12 10:42:09 -06:00
parent 6c6e58b919
commit 46f2d03162
1 changed files with 9 additions and 1 deletions

View File

@ -63,3 +63,11 @@ Now navigate in your browser to http://phantom.docker and your tests will run in
the browser you have open (in addition to PhantomJS). This will give you the chance
to debug them as well as see how they work in a fully functional browser. Our JS
specs currently run in Chrome so make sure that your tests pass there.
## Javascript Test Coverage
You can generate code coverage locally by first running `npm install` having webpack
set up( `touch config/WEBPACK`) then running `bundle exec rake js:test` or `npm run webpack-test`.
You should then have a folder in your root directory called `coverage-js`
in which contains an `index.html` which if you open it will show you
the test coverage for all javascript (js, coffee, jsx)