Java Reference
In-Depth Information
function featureBSuite() {
var result = new JsUnitTestSuite();
result. addTestPage ("../tests/featureB/Test1.html");
result. addTestPage ("../tests/featureB/Test2.html");
return result;
}
function suite() {
var newsuite = new JsUnitTestSuite();
newsuite. addTestSuite (featureASuite());
newsuite. addTestSuite (featureASuite());
return newsuite;
}
We now show you how to run the tests manually during development and then
through Ant for builds.
13.4.5
Running JsUnit tests manually
To run your tests manually, open a web browser on jsunit/testRunner.html , enter into
the file entry field a URL (file: // or http: // ) or file reference (c:\path\to\a\file) to an
HTML test page for a test or a suite, and click the Run button. In figure 13.4, we show
the result of running our test suite with the familiar green bar.
Figure 13.4
The JsUnit test runner
 
 
 
 
Search WWH ::




Custom Search