Changes

Jump to: navigation, search

Unit Testing

No change in size, 00:56, 8 December 2006
How to add test cases by using this framework
Writing the test cases by using this framework is really easy. All you need to to is opening the file '''unittesting.js''', and add any type of test case by adding following three sections. (This example is for bookmarks unit testing)
* Section 1. initialize Initialize the services (Firefox API) that contains all the units that are going to be tested. The following is the example of bookmarks services in Firefox API.
<pre>
* Section 2. a A test suite holding all the test cases.The following is example of bookmarks test suite.
<pre>
* Section 3. run Run your test cases. In this example, we run bookmarksTests.
<pre>
/*
1
edit

Navigation menu