Skip to content

Latest commit

 

History

History
 
 

#Jetpack OpenWebApps add on unit tests#

These are the unit tests to test modules that are not shared with the HTML5 shim. To test modules shared with the HTML5 shim, use the browser based test set located in openwebapps/site/tests/

The tests in this directory are run using the JetPack based unit test system. Docs on the various parameters can be found on (MDN - cfx - Add-on SDK Documentation)[https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/dev-guide/addon-development/cfx-tool.html]

Documentation for writing these tests can be found at: [https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/packages/api-utils/docs/unit-test.html]

The basic command to run the tests must be run from the openwebapps/addons/jetpack directory, and is:

cfx test

To run an individual test-module, run:

cfx test -f <name of module>

More complete documentation including how to add tests can be found in openwebapps/docs/TESTING.md