947
edits
(→Tests: wiki formatting) |
(→Tests: minor updates) |
||
Line 228: | Line 228: | ||
* each mozbase package should have tests in a 'tests' subdirectory of the root | * each mozbase package should have tests in a 'tests' subdirectory of the root | ||
**''Example'': https://github.com/mozilla/mozbase/tree/master/mozprofile/tests | **''Example'': https://github.com/mozilla/mozbase/tree/master/mozprofile/tests | ||
* these should be self-executing [http://docs.python.org/library/unittest.html python unittests] | * these should be self-executing [http://docs.python.org/library/unittest.html python unittests] | ||
**''Example'': https://github.com/mozilla/mozbase/blob/master/mozprofile/tests/testprofile.py | |||
* these tests should be contained in a manifest; the master test manifest, https://github.com/mozilla/mozbase/blob/master/test-manifest.ini , is executed via [https://github.com/mozilla/mozbase/blob/master/test.py test.py] | * these tests should be contained in a manifest; the master test manifest, https://github.com/mozilla/mozbase/blob/master/test-manifest.ini , is executed via [https://github.com/mozilla/mozbase/blob/master/test.py test.py] | ||
You will need [http://www.gnu.org/software/make/manual/make.html make] and 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] | 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] | ||
Continuous integration via [http://k0s.org/mozilla/hg/autobot autobot] is available at http://k0s.org:8010/ | Continuous integration via [http://k0s.org/mozilla/hg/autobot autobot] is available at http://k0s.org:8010/ |
edits