MozTAP
TAP (Test Anything Protocol) for Mozilla JavaScript Codes
Abstract
MozTAP is simple test library for Mozilla's JavaScript codes. MozTAP is implemented TAP (Test Anything Protocol). MozTAP requires xpcshell as Mozilla JavaScript Code interpreter, and prove as command for running tests.
Before using this tool, please install xpcshell and prove.
Source
http://svn.coderepos.org/share/platform/gecko/tools/moztap/trunk/
Install and Setting
Please type this:
$ svn export --force http://svn.coderepos.org/share/platform/gecko/tools/moztap/trunk/ ./
And type this:
$ export MOZTAP_XPCSHELL=/path/to/xpcshell
Please run example tests,
$ prove -ve 'bin/moztap' examples/*.js
Supported test functions
- plans(aPlans)
- noplans(isNoPlans)
- ok(cond, desc)
- is(got, expect, desc)
- isnt(got, expect, desc)
- like(got, expect, desc)
- unlinke(got, expect, desc)
- pass(testName)
- fail(testName)
- diag(msgs)
Copyright
Toru Yamaguchi <zigorou at cpan dot org>
License
This softwere is free softwere. You can redistribute it and/or modify it under the same terms as Perl itself.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)