QA/BrowserID/BrowserID Basic Install: Difference between revisions

Jump to navigation Jump to search
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.
* Note 2: the Back-End Unit Tests will run against mysql if it is installed and configured. For more information, see the following wikis: TBD
** (Can search on the web for basic instructions to get mysql-server and mysql-dev/mysql-devel installed to Mac and/or Linux)


=== "Headless" Front-End Unit Tests ===
=== "Headless" Front-End Unit Tests ===
Confirmed users
3,727

edits

Navigation menu