Changes

Jump to: navigation, search

Auto-tools/Projects/Mozbase

478 bytes removed, 14:37, 13 February 2017
Running the tests
You will need [http://www.gnu.org/software/make/manual/make.html make] and [http://gcc.gnu.org/ gcc] in order to run the tests. If you're running windows, this is available in [https://developer.mozilla.org/en/Windows_Build_Prerequisites#MozillaBuild_.2F_Pymake MozillaBuild].
Ensure that all mozbase packages are installed as Then, from the tests require them as well as 3rd party packages using 'python setup_development.py root of mozilla--extra'.central, run:
Then run the [http://mxr.mozilla $ .org/mozillamach python-central/source/test testing/mozbase/test.py test.py] test runner from the root of the git repository:
$ python testThis will run all tests from every mozbase module.pyYou can run individual tests by passing in that directory specifically, e.g:
This will run all tests from [http://mxr $ .mozilla.org/mozillamach python-central/source/testing/mozbase/test-manifest.ini test-manifest.ini] which is parsed with [http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/manifestdestiny ManifestDestiny]. On success 'test.py' should print the number of tests run and 'OK':  ---------------------------------------------------------------------- Ran 56 tests in 114.807s OKmozprocess
==== Mozbase Testing Framework ====
Confirm
651
edits

Navigation menu