This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
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.
There are two sets of client tests:
-
clientServerTests
: focusing on navigation and templates. To run, start the server and navigate to URL:
http://localhost:7261/clientServerTests -
clientTests
: focusing on content assist, inferencing, mark occurrences, keybindings, and summarizing. To To run, start the server and navigate to URL:
http://localhost:7261/clientTests
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-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