Confirmed users
3,727
edits
| Line 375: | Line 375: | ||
$ 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) | ||
And, for mysql support without creating the necessary test user and test db, just use the following environment variables: | |||
NODE_ENV=test_mysql MYSQL_USER=browserid MYSQL_PASSWORD=browserid npm test | |||
* 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 | * Make sure that mysql is installed and running with a test user and test db already created (see the next section) | ||
* Unit test location in code (and GitHub) | * Unit test location in code (and GitHub) | ||