mozilla

Compare Revisions

Running automated tests

Change Revisions

Revision 385347:

Revision 385347 by jswisher on

Revision 461765:

Revision 461765 by gps on

Title:
Running automated tests
Running automated tests
Slug:
Running_automated_tests
Running_automated_tests
Tags:
"Automated testing", "NeedsContent", "automated", "Developing Mozilla", "NeedsHelp", "running"
"Automated testing", "NeedsContent", "automated", "Developing Mozilla", "NeedsHelp", "running"
Content:

Revision 385347
Revision 461765
n26      xpcshell/"compiled code" testsn26      xpcshell tests
n29      The following commands execute the <a href="/en/Compiled-con29      <a href="/en/Writing_xpcshell-based_unit_tests" title="en/W
>de_automated_tests" title="en/Compiled-code_automated_tests">stan>riting_xpcshell-based_unit_tests">xpcshell-based tests</a> can be
>dalone (aka "compiled-code") tests</a> and the <a href="/en/Writi> executed by running the xpcshell-test mach command:
>ng_xpcshell-based_unit_tests" title="en/Writing_xpcshell-based_un 
>it_tests">xpcshell-based tests</a>. 
30    </p>
31    <pre name="make_check">
32$ mach xpcshell-test
33</pre>
34    <p>
35      This command is self-documenting:
36    </p>
37    <pre>
38$ mach help xpcshell-test
39</pre>
40    <h3 name="make_check">
41      "compiled code" tests
42    </h3>
43    <p>
44      The following command execute the <a href="/en/Compiled-cod
 >e_automated_tests" title="en/Compiled-code_automated_tests">stand
 >alone (aka "compiled-code") tests</a>:
n32$ make -C $(OBJDIR) xpcshell-testsn
n54$ make -C $(OBJDIR) mochitest-plainn68$ mach mochitest-plain
55$ make -C $(OBJDIR) mochitest-chrome69$ mach mochitest-chrome
56$ make -C $(OBJDIR) mochitest-a11y70$ mach mochitest-a11y
n75$ make -C $(OBJDIR) reftestn89$ mach reftest
76$ make -C $(OBJDIR) crashtest90$ mach crashtest
t103$ make -C $(OBJDIR) mochitest-browser-chromet117$ mach mochitest-browser

Back to History