Confirmed users
3,727
edits
| Line 371: | Line 371: | ||
browserid/resources/static/test/qunit | browserid/resources/static/test/qunit | ||
=== Back-End Unit Tests === | === Back-End Unit Tests with PhantomJS and MySQL Support === | ||
* The back-end unit tests (which now include the "headless" unit tests) can be run locally as follows, from the browserid folder: | * The back-end unit tests (which now include the "headless" unit tests) can be run locally as follows, from the browserid folder: | ||
$ npm test | $ npm test | ||
(The services do not need to be running, the test app takes care of everything) | (The services do not need to be running, the test app takes care of everything) | ||
* Make sure that phantomjs is installed and the path has been set before running these (see notes in the previous sections) | * Make sure that phantomjs is installed and the path has been set before running these (see notes in the previous sections) | ||
* Make sure that mysql is installed and running | |||
* Unit test location in code (and GitHub) | * Unit test location in code (and GitHub) | ||
| Line 381: | Line 382: | ||
* Note: the Back-End Unit Tests can not be run on Stage or Prod due to the focused server-style RPM install and the limited permissions for QA. | * Note: the Back-End Unit Tests can not be run on Stage or Prod due to the focused server-style RPM install and the limited permissions for QA. | ||
=== "Headless" Front-End Unit Tests === | === "Headless" Front-End Unit Tests === | ||