Basic Usage
Posted October 19th, 2007 by bard
MozUnit documentation has moved. Go to the new home »
First, tell MozUnit what editor it should start when you want to create or edit test files:
- Go to the about:config URL
- Find the extensions.mozlab.mozunit.editor
- Enter the command that will start the editor
- Path must be absolute
- %f will be replaced by the file name
- %l (optional) will be replaced by the line number
- %c (optional) will be replaced by the column number
- For example, the command to use on Unix to start Emacs at the appropriate line and column would be:
/usr/bin/emacs +%l:%c %f
In Firefox, select Tools → MozLab → Open MozUnit Runner from menu.
In the runner, select File → New from menu, and enter a filename when required (e.g. tc_foo.js). The editor will open and it will contain a testcase skeleton you can modify.
Post new comment