CloudServices/Sync/FxSync/Archived/Testing: Difference between revisions
< CloudServices | Sync | FxSync | Archived
Jump to navigation
Jump to search
(Origination) |
(→Running Tests: typo fix) |
||
Line 7: | Line 7: | ||
All tests can be automatically found and run by executing the following command at the root of the repository: | All tests can be automatically found and run by executing the following command at the root of the repository: | ||
python scripts | python scripts/runtests.py | ||
== Writing Tests == | == Writing Tests == | ||
For information about writing new xpcshell-based tests, see [http://hg.mozilla.org/labs/weave/index.cgi/raw-file/tip/tests/readme.txt tests/readme.txt] in the Weave HG repository. | For information about writing new xpcshell-based tests, see [http://hg.mozilla.org/labs/weave/index.cgi/raw-file/tip/tests/readme.txt tests/readme.txt] in the Weave HG repository. |
Revision as of 23:36, 15 July 2008
Back to Labs/Weave.
Running Tests
Weave's code repository includes a variety of tests. Some of these are XPCShell-based unit tests, while others are Python-based. Some tests are "logtests", which compare the logfile output of test code with a canonical representation.
All tests can be automatically found and run by executing the following command at the root of the repository:
python scripts/runtests.py
Writing Tests
For information about writing new xpcshell-based tests, see tests/readme.txt in the Weave HG repository.