dstore uses Intern as its test runner. Tests can either be run using the browser, or using Sauce Labs. More information on writing your own tests with Intern can be found in the Intern wiki.
Note: Commands listed in this section are all written assuming they are
run in the dstore
directory.
Install dependencies for testing.
npm install
- Open a browser to http://hostname/path_to_dstore/tests/runTests.html
- View the console
Run the tests with the following command:
node node_modules/intern-geezer/client config=tests/intern
Make sure the proper Sauce Labs credentials are set in the environment:
export SAUCE_USERNAME=<your_sauce_username>
export SAUCE_ACCESS_KEY=<your_sauce_access_key>
Then kick off the runner with the following command:
node node_modules/intern-geezer/runner config=tests/intern