Visit Mozilla.org

Running the Rhino tests

From MDC

To run the Rhino tests, follow these steps:

1. Build Rhino:

$ cd mozilla/js/rhino
$ ant dist

2. Build JsDriver test driver:

$ ant jsdriver

3. Run all the tests (Unix):

$ java -classpath ../tests/src/jstests.jar:build/test/classes:build/classes org.mozilla.javascript.drivers.JsDriver -f results.xml --timeout 15000 -L @testsrc/base.skip

Lots of log output will be printed out to the console, so you might want to redirect to a file.

4. Results can be viewed in the results.xml file in the directory where JsDriver was run.

You can also run tests for optimization mode by adding the -o 1 flag and the additional testsrc/opt1.skip skip list.

$ java -classpath ../tests/src/jstests.jar:build/test/classes:build/classes org.mozilla.javascript.drivers.JsDriver -f results.xml --timeout 15000 -o 1 -L @testsrc/base.skip -L @testsrc/opt1.skip

See the historical JavaScript tests page for more context.


Norrisboyd