I’ve had problems before where it would have been useful to easily run mochitests against other versions of the browser than those in my $OBJDIR
. I’m pleased to say I just landed a small patch for the mochitests runner’s mach commands that lets you do:
./mach mochitest-browser --app-override /usr/bin/firefox path/to/test
and also has a special shortcut for the application as built for distribution (using omni.jar rather than a flat directory structure):
./mach mochitest-browser --app-override dist path/to/test
Happy testing!
Do you have any idea how painful it is to do this right now? This makes it possible to download tests and builds from tbpl and run them locally! And be able to change one or the other and rerun. This is awesome! Gijs++
Sadly, the mozharness job is not currently very usable for this purpose. It really really wants to download. And run under buildbot (buildprops.json).
Nice, thank you!