Go to HowToWriteAndRunTests to learn how to use this framework.
In its original form RhinoUnit is run from an ANT scriptdef task using the Rhino engine - and uses all the helpful things that ANT provides for that. It is intended, however, that in the future the framework can be reused in other forms.
It will do all the normal tests
And does them in a more natural form. For example assert.that("string", not(matches(/somethingelse/))); checks that the string "string" doesn't match the regular expression /somethingelse/.
RhinoUnit provides some more advanced tests. You can
You can use the 'when' construct to nest setup functions to give more obvious context to your tests. This is like 'chaining' your setUp functions, and means you can reduce the amount of repetition at the top of your tests. See SetupNesting
The original JSLint can be found at
and the original Ant script can be found at