Difference between revisions of "How-Tos"

From CDOT Wiki
Jump to: navigation, search
(Mochitests)
(Mochitests)
Line 38: Line 38:
 
<span style="color:DarkRed;font-weight:bold">Step 1</span>
 
<span style="color:DarkRed;font-weight:bold">Step 1</span>
 
<pre>cd $(OBJDIR)/_tests/testing/mochitest</pre>
 
<pre>cd $(OBJDIR)/_tests/testing/mochitest</pre>
<span style="color:DarkRed">Step 2</span>
+
<span style="color:DarkRed;font-weight:bold">Step 2</span>
 
<pre>python runtests.py</pre>
 
<pre>python runtests.py</pre>
 
</blockquote>
 
</blockquote>
 
'''<span style="color:DarkRed">B)</span>'''
 
'''<span style="color:DarkRed">B)</span>'''
 
<blockquote>
 
<blockquote>
<span style="color:DarkRed">Step 1</span>
+
<span style="color:DarkRed;font-weight:bold">Step 1</span>
 
<pre>cd $(OBJDIR)</pre>
 
<pre>cd $(OBJDIR)</pre>
<span style="color:DarkRed">Step 2</span>
+
<span style="color:DarkRed;font-weight:bold">Step 2</span>
 
<pre>make -C $(OBJDIR) mochitest</pre>
 
<pre>make -C $(OBJDIR) mochitest</pre>
 
</blockquote>
 
</blockquote>
 
Specific Mochitests can be run by the following:
 
Specific Mochitests can be run by the following:
 
<blockquote>
 
<blockquote>
<span style="color:DarkRed">Step 1</span>
+
<span style="color:DarkRed;font-weight:bold">Step 1</span>
 
<pre>cd $(OBJDIR)/_tests/testing/mochitest</pre>
 
<pre>cd $(OBJDIR)/_tests/testing/mochitest</pre>
<span style="color:DarkRed">Step 2</span>
+
<span style="color:DarkRed;font-weight:bold">Step 2</span>
 
<pre>python runtests.py --test-path=content/base/test/test_CrossSiteXHR.html</pre>
 
<pre>python runtests.py --test-path=content/base/test/test_CrossSiteXHR.html</pre>
 
</blockquote>
 
</blockquote>

Revision as of 15:48, 28 November 2008

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
Build Firefox from source.


Mochitests

Run all Mochitests
A)

Step 1

cd $(OBJDIR)/_tests/testing/mochitest

Step 2

python runtests.py

B)

Step 1

cd $(OBJDIR)

Step 2

make -C $(OBJDIR) mochitest

Specific Mochitests can be run by the following:

Step 1

cd $(OBJDIR)/_tests/testing/mochitest

Step 2

python runtests.py --test-path=content/base/test/test_CrossSiteXHR.html

There are more options that are available for running Mochitests.


XPCShell

Step 1

cd path/to/source/
make check

How to make xpcshell tests.


Reftests

Step 1

cd path/to/source/
path/to/dist/bin/firefox -no-remote -reftest layout/reftests/reftest.list

Here is a readme on reftests.

Thunderbird

Open Office

Eclipse

Linux

Fedora