Difference between revisions of "How-Tos"
(→Automated Tests) |
(→Firefox) |
||
Line 10: | Line 10: | ||
<p> | <p> | ||
For an overview on Automated testing with Mozilla can be found on the [https://developer.mozilla.org/en/Mozilla_automated_testing Mozilla Developer Center]. | For an overview on Automated testing with Mozilla can be found on the [https://developer.mozilla.org/en/Mozilla_automated_testing Mozilla Developer Center]. | ||
+ | </p> | ||
+ | <p> | ||
+ | A requirement for all test is to make sure that Firefox is compiled with tests enabled.<br/> | ||
+ | Modify the .mozconfig file to include <code>ac_add_options --enable-tests</code> | ||
</p> | </p> | ||
=====Mochitests===== | =====Mochitests===== | ||
Line 15: | Line 19: | ||
'''Step 1''' | '''Step 1''' | ||
<blockquote> | <blockquote> | ||
− | + | ||
</blockquote> | </blockquote> | ||
− | '''< | + | '''<font color="red">Step 2</font>''' |
<blockquote> | <blockquote> | ||
Build Firefox | Build Firefox | ||
Line 41: | Line 45: | ||
=====XPCShell===== | =====XPCShell===== | ||
+ | <!-- | ||
'''Steps to run tests on Firefox'''<br/> | '''Steps to run tests on Firefox'''<br/> | ||
'''Step1''' | '''Step1''' | ||
Line 47: | Line 52: | ||
<pre></pre>https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests | <pre></pre>https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests | ||
</bockquote> | </bockquote> | ||
+ | --> | ||
=====Reftests===== | =====Reftests===== | ||
Revision as of 14:25, 28 November 2008
Contents
Welcome
Welcome to the Seneca How-To page. You'll find How-To's for all things Open Source related.
Wiki
How to add a how-to
To add a how-to to this page add a heading under the correct category OR create a category if one doesn't exist. There are currently no formatting or style rules. The suggestion is to be clean and well laid out. Look over the current how-to's to get a feel on how your tutorial should be laid out. Thank you for the contribution.
Mozilla
Firefox
Automated Tests
For an overview on Automated testing with Mozilla can be found on the Mozilla Developer Center.
A requirement for all test is to make sure that Firefox is compiled with tests enabled.
Modify the .mozconfig file to include ac_add_options --enable-tests
Mochitests
Steps to run tests on Firefox
Step 1
Step 2
Build Firefox
Step 3
A)
Run the Mochitests
cd $(OBJDIR)/_tests/testing/mochitest python runtests.pyor
make -C $(OBJDIR) mochitest
B)
Specific Mochitests can be run by the following:
cd $(OBJDIR)/_tests/testing/mochitest python runtests.py --test-path=content/base/test/test_CrossSiteXHR.html
There are more options that are available for running Mochitests.