Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Running the tests

kdvolder edited this page Dec 21, 2012 · 8 revisions

(Valid for 0.3.0 release and later)

Tests are located in the scripted/tests folder. Beneath that folder are the client and server tests. Client tests are are qunit based and server tests use nodeunit.

Please run the tests before submitting any pull request.

Client tests

There are two sets of client tests:

Even though the clientTests do not make any server calls, they still require the server to be running in order to serve the initial HTML file.

Server tests

Server-side tests focus on testing the server-side node modules and apis. To run the tests:

cd scripted
npm test

The tests use nodeunit as the test driver so you must have nodeunit installed. It can be installed as follows:

npm -g install nodeunit
Clone this wiki locally