Compare Revisions

Firefox OS mochitests

Revision 463931:

Revision 463931 by jgriffin on

Revision 463933:

Revision 463933 by jgriffin on

Title:
Firefox OS mochitests
Firefox OS mochitests
Slug:
Mozilla/Firefox_OS/Platform/Automated_testing/Mochitests
Mozilla/Firefox_OS/Platform/Automated_testing/Mochitests
Tags:
"Mobile","Automated testing","B2G"
"Mobile","Automated testing","B2G"
Content:

Revision 463931
Revision 463933
tt77    <h3>
78      Using mach
79    </h3>
80    <p>
81      If you have a local emulator build that is made against a t
 >runk gecko branch (not mozilla-b2g18), the easiest way to run moc
 >hitest is with <a href="/en-US/docs/Developer_Guide/mach" title="
 >/en-US/docs/Developer_Guide/mach">mach</a>.&nbsp; To run all of t
 >he tests
82    </p>
83    <pre>
84cd $B2G_DIR
85./mach mochitest-remote
86</pre>
87    <p>
88      To run a specific test:
89    </p>
90    <pre>
91cd $B2G_DIR
92./mach mochitest-remote test_path
93</pre>
94    <p>
95      Test paths are relative to gecko's source directory, e.g., 
 ><code>content/base/test/test_CrossSiteXHR.html</code>
96    </p>
97    <p>
98      To see mochitest options:
99    </p>
100    <pre>
101cd $B2G_DIR
102./mach help mochitest-remote
103</pre>
104    <h3>
105      Using the mochitest runner
106    </h3>

Back to History