{"id":179,"date":"2014-05-01T16:16:23","date_gmt":"2014-05-01T14:16:23","guid":{"rendered":"http:\/\/www.gijsk.com\/blog\/?p=179"},"modified":"2014-05-01T16:16:23","modified_gmt":"2014-05-01T14:16:23","slug":"run-mochitests-against-an-arbitrary-build-or-against-the-distribution-directory","status":"publish","type":"post","link":"https:\/\/www.gijsk.com\/blog\/2014\/05\/run-mochitests-against-an-arbitrary-build-or-against-the-distribution-directory\/","title":{"rendered":"Run mochitests against an arbitrary build, or against the distribution directory"},"content":{"rendered":"<p>I&#8217;ve had problems before where it would have been useful to easily run mochitests against other versions of the browser than those in my <code>$OBJDIR<\/code>. I&#8217;m pleased to say I just landed a small patch for the mochitests runner&#8217;s mach commands that lets you do:<\/p>\n<pre>.\/mach mochitest-browser --app-override \/usr\/bin\/firefox path\/to\/test<\/pre>\n<p>and also has a special shortcut for the application as built for distribution (using omni.jar rather than a flat directory structure):<\/p>\n<pre>.\/mach mochitest-browser --app-override dist path\/to\/test<\/pre>\n<p>Happy testing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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&#8217;m pleased to say I just landed a small patch for the mochitests runner&#8217;s mach &hellip; <a href=\"https:\/\/www.gijsk.com\/blog\/2014\/05\/run-mochitests-against-an-arbitrary-build-or-against-the-distribution-directory\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-mozilla"],"_links":{"self":[{"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/posts\/179"}],"collection":[{"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":1,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gijsk.com\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}