1.0 KiB
1.0 KiB
Testing
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.
Setting up
Note: Commands listed in this section are all written assuming they are
run in the dstore directory.
Install dependencies for testing.
npm install
Running via the browser
- Open a browser to http://hostname/path_to_dstore/tests/runTests.html
- View the console
Running in the console
Run the tests with the following command:
node node_modules/intern-geezer/client config=tests/intern
Running via Sauce Labs
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