The IDE enables you to run unit tests on JavaScript files using JsTestDriver. The test driver will run the unit tests in each of the browsers that you specify when you configure the test driver.
After you create the unit tests for your JavaScript files, you can run the unit tests by performing the following steps.
Only browsers that are installed on your local system are displayed in the list.
Click OK to close the dialog box.When you choose Start, each of the browsers that you specified will open a window and will wait to run the unit tests. You can see the status in the js-test-driver server tab in the Output window.
The file name must be jsTestDriver.conf and the file must be in the
root of the config folder to enable the Test command for the project.
The correct path that is displayed in the Created File text field will be
similar to the following:
<PROJECT_FOLDER>config/jsTestDriver.conf.
If the config folder does not exist you can create the folder by typing config in the Folder text field or by creating the folder manually and then specifying the folder in the Project Properties window.
Click Finish.When you click Finish the IDE creates the jsTestDriver.conf file and opens the file in the editor. In the Projects window you can see the file under the Configuration Files node.
When you click Test the IDE runs the unit tests. You can open the Test Results window to view the results. You can see details about the specific tests in the Output window.
Notes.
The JS Test Driver site also provides documentation and details about using JS Test Driver.