CloudServices/Sync/FxSync/QA

From MozillaWiki
Jump to: navigation, search

Manual Testing

Fresh start
Weave Test Plan
Manual test cases in review. Once they pass that, they will be added to Litmus.

Unit Tests

Unit tests are in tests/unit in the weave checkout. Simply cd there and run 'make' to run all the tests, or run 'make <test name>' to run only one test, where <test name> is one of the test*.js files in that directory (minus the .js extension).

See Labs/Weave/Testing for some extra information on Weave's automated tests.

Windows

On windows, you need to set the NATIVE_TOPSRCDIR environment variable to the weave toplevel directory for tests to work. You should use the 'native' windows syntax (C:\...). For example:

$ NATIVE_TOPSRCDIR=C:\\Users\\Dan\\sources\\weave make

(bash uses \ as an escape character, so we need two backslashes for each directory separator).

System Tests

These are in the works. They will use XMPP as a mechanism to trigger syncs in multiple firefox/xpcshell processes with different profiles. More information to appear here as we advance this framework.