CloudServices/Sync/FxSync/Archived/Testing: Difference between revisions

Added information on writing engine sync tests
(added more info)
(Added information on writing engine sync tests)
Line 14: Line 14:


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.
=== Engine Sync Tests ===
One particularly useful type of test to write is a test for a particular data type engine.  There's a number of fake/stub implementations of "real" services that can help developers create engine tests as easily as possible.  For examples, check out [http://hg.mozilla.org/labs/weave/index.cgi/file/tip/tests/unit/test_password_syncing.js tests/unit/test_password_syncing.js] and [http://hg.mozilla.org/labs/weave/index.cgi/file/tip/tests/unit/test_bookmark_syncing.js tests/unit/test_bookmark_syncing.js].
874

edits