Menu

Home

Patrick Brunschwig

JSUnit - JavaScript Unit Testing

JSUnit is a Mozilla addon targeted for addon-authors to allow for unit testing of JavaScript components. It provides a command line interface to run unit tests in installed applications like Firefox and Thunderbird.

Please note: JSUnit is a test tool; it is __not__ recommended for production environments, as it modifies various configuration settings that slow down your application for daily use!

Usage

JSUnit is implemented as add-on to Firefox, Thunderbird, and other Mozilla based applications. It needs to be installed just like any other addon. The test are executed as follows:

thunderbird.exe -jsunit <path to main test file>

the path to main test file can either be a relative or absolute file name, or a URL such as chrome://testmodule/testclass.js

How to Write Unit Tests

see [WritingUnitTests]

Tips & Tricks

see [TipsAndTricks]

Current Status

see [CurrentStatus]

Download

see [Downloads]


Related

Wiki: CurrentStatus
Wiki: Downloads
Wiki: TipsAndTricks
Wiki: WritingUnitTests

MongoDB Logo MongoDB