Running the tests
Clone this wiki locally
(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:
clientTests: focusing on content assist, inferencing, mark occurrences, keybindings, and summarizing. To To run, start the server and navigate to URL:
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