Mobile/Fennec/GettingStartedWithTests: Difference between revisions

(Created page with '=Testing= Mozilla has several methods of creating and executing [https://developer.mozilla.org/en/Mozilla_automated_testing automated tests]. Fennec, as a web browser, can reuse …')
 
Line 20: Line 20:
=Adding a Test=
=Adding a Test=
There is some [https://developer.mozilla.org/en/How_to_add_a_build-time_test general information] on building tests and adding them to the build. For the most part, you just add the test files and any supporting files to the [http://mxr.mozilla.org/mobile-browser/source/chrome/tests/ tests] folder and also add them to the [http://mxr.mozilla.org/mobile-browser/source/chrome/tests/Makefile.in#58 Makefile].
There is some [https://developer.mozilla.org/en/How_to_add_a_build-time_test general information] on building tests and adding them to the build. For the most part, you just add the test files and any supporting files to the [http://mxr.mozilla.org/mobile-browser/source/chrome/tests/ tests] folder and also add them to the [http://mxr.mozilla.org/mobile-browser/source/chrome/tests/Makefile.in#58 Makefile].
=Tools=
Once the tests has landed there is some automatic tools to ensure everything works fine on both desktop (bug|) and devices
There is 2 versions of [https://developer.mozilla.org/en/Tinderbox Tinderbox] you could used, the first one is [http://tinderbox.mozilla.org/showbuilds.cgi?tree=Mobile&noignore=1 Tinderbox] which is not really ergonomic while the second version is an enhanced display called [http://tbpl.mozilla.org/?tree=Mobile&noignore=1 Tinderbox Pushlog] which you can turn into an App Tab that will glow when a test failed.
''If you want to be able to see browser-chrome tests you need to add '''&noignore=1''' to the Tinderbox URL.''
Confirmed users
230

edits