(NB: there are two different testing frameworks going by the name of JsUnit, both essentially JUnit ports. This article is currently devoted to the more widely used version created by Edward Hieatt, which solely operates in browser; the other, which in primary contrast has solely headless operation, was created by JÓ§rg Schaible. )
JsUnit is an open source Unit Testing framework for client-side (in-browser) JavaScript. It is essentially a port of JUnit to JavaScript. Also included is a platform for automating the execution of tests on multiple browsers and multiple machines running different OSs. Its development began in January 2001.
JsUnit uses exception handling, which means we need JavaScript 1.4 or higher. That means that the browsers supported are Internet Explorer 5.0 or later, Netscape 6.0 or later, Mozilla 0.9 or later, and Konqueror 5.0 or later. The latest version of JsUnit has been tested for:
To run the server component of JsUnit, you will need a Java VM.