Using the Test Runner
To use the JsUnit Test Runner, open the web browser in which the tests are to be run on the "testRunner.html" file in the jsUnit directory. Enter the name of your test file in the field provided and press the "Run" button. The Test Functions in your test page will be run in order of declaration. The "Progress" bar indicates progress of the Test Runner through the Test Page. The progress bar remains green unless an error or failure is encountered, at which time it turns red. Number of tests run ("Runs"), errors encountered ("Errors"), and failures encountered ("Failures") are reported. For each error or failure encountered, an entry is placed in the "Errors and Failures" list box. Double-click the error or failure or highlight it and click "Show" to see more information about it. In the case of an error, you will see the browser's error message. In the case of a failure you will see the failure message, your comment (if you used one in the assertion call) and the stack trace if you are using IE.