ReleaseEngineering/Mozharness/How to run tests as a developer: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
</pre>
</pre>


* create a buildprops.json .  This is output in the log of the test you're trying to replicate.
* If you use the above commands, you don't need a buildprops.json.  Otherwise you need to create a buildprops.json; this is output in the log of the test you're trying to replicate.

Revision as of 19:29, 7 February 2014

The main thing you need is to checkout mozharness and call it like on tbpl, however, you will need to use these options:

  • --no-read-buildbot-configs (as you're running it without buildbot)
  • --installer-url (The Firefox binaries)
  • --test-url (The tests zip)
hg clone http://hg.mozilla.org/build/mozharness scripts
# on Mac
/tools/buildbot/bin/python scripts/scripts/desktop_unittest.py --cfg unittests/mac_unittest.py --reftest-suite reftest --download-symbols ondemand --no-read-buildbot-config --installer-url http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32/1370616247/firefox-24.0a1.en-US.win32.zip --test-url http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32/1370616247/firefox-24.0a1.en-US.win32.tests.zip
# on Windows
c:/mozilla-build/python27/python -u scripts/scripts/desktop_unittest.py --cfg unittests/win_unittest.py --reftest-suite reftest --download-symbols ondemand --no-read-buildbot-config --installer-url http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32/1370616247/firefox-24.0a1.en-US.win32.zip --test-url http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-win32/1370616247/firefox-24.0a1.en-US.win32.tests.zip
  • If you use the above commands, you don't need a buildprops.json. Otherwise you need to create a buildprops.json; this is output in the log of the test you're trying to replicate.