mozilla

Revision 60530 of Thunderbird MozMill Testing

  • Revision slug: Thunderbird/Thunderbird_MozMill_Testing
  • Revision title: Thunderbird MozMill Testing
  • Revision id: 60530
  • Created:
  • Creator: DavidA
  • Is current revision? No
  • Comment no wording changes

Revision Content

MozMill Tests

MozMill is the framework that we're using to run interactive tests.  Mozmill tests effectively run the entire application through unit tests.

Installing MozMill

First, pull and install mozrunner:

svn checkout http://mozrunner.googlecode.com/svn/trunk/ mozrunner
cd mozrunner

sudo python setup.py develop
cd ..

then do the same for jsbridge:

svn checkout http://jsbridsg.googlecode.com/svn/trunk/ mozrunner
cd jsbridge

sudo python setup.py develop
cd ..

and then mozmill itself:

svn checkout http://mozmill.googlecode.com/svn/trunk/ mozmill
cd mozrunner

sudo python setup.py develop
cd ..

svn checkout http://jsbridge.googlecode.com/svn/trunk/ jsbridge
cd mozrunner
sudo python setup.py develop
cd ..

 

 

To run MozMill tests, one must install mozmill, and its dependencies: jsbridge and mozrunner

<asuth> http://code.google.com/p/mozmill/
1:16pmasuth:
<asuth> http://code.google.com/p/jsbridge/
1:16pmasuth:
<asuth> http://code.google.com/p/mozrunner/
1:16pmasuth:
<asuth> you probably want the trunk versions
1:16pmasuth:
<asuth> you'll want to do "sudo python setup.py develop" for each of those, in general
1:16pmasuth:
<asuth> in the order: mozrunner, jsbridge, mozmill

<asuth> then in mail/test/mozmill there's a runtest.py dude
1:19pmasuth:
<asuth> and the tests are under there
1:19pmasuth:
python runtest.py -t folder-display

or python runtest.py -t folder-display/test-name.js for just one

Revision Source

<h3>MozMill Tests</h3>
<p>MozMill is the framework that we're using to run interactive tests.  Mozmill tests effectively run the entire application through unit tests.</p>
<h4>Installing MozMill</h4>
<p>First, pull and install mozrunner:</p>
<p><code>svn checkout <a class=" external" href="http://mozrunner.googlecode.com/svn/trunk/" rel="freelink">http://mozrunner.googlecode.com/svn/trunk/</a> mozrunner<br>
cd mozrunner</code><br>
<code>sudo python setup.py develop<br>
cd ..</code></p>
<p>then do the same for jsbridge:</p>
<p><code>svn checkout <a class=" external" href="http://jsbridsg.googlecode.com/svn/trunk/" rel="freelink">http://jsbridsg.googlecode.com/svn/trunk/</a> mozrunner<br>
cd jsbridge</code><br>
<code>sudo python setup.py develop<br>
cd ..</code></p>
<p>and then mozmill itself:</p>
<p><span style="font-family: Verdana,Tahoma,sans-serif;">svn checkout <a class=" external" href="http://mozmill.googlecode.com/svn/trunk/" rel="freelink">http://mozmill.googlecode.com/svn/trunk/</a> mozmill<br>
cd mozrunner</span><br>
sudo python setup.py develop<br>
cd ..<span style="font-family: Verdana,Tahoma,sans-serif;"><br>
</span></p>
<p><code><span style="font-family: Verdana,Tahoma,sans-serif;">svn checkout <a class=" external" href="http://jsbridge.googlecode.com/svn/trunk/" rel="freelink">http://jsbridge.googlecode.com/svn/trunk/</a> jsbridge<br>
</span></code><code><span style="font-family: Verdana,Tahoma,sans-serif;">cd mozrunner</span></code><br>
sudo python setup.py develop<br>
cd ..<code><span style="font-family: Verdana,Tahoma,sans-serif;"><br>
</span></code></p>
<p> </p>
<p> </p>
<p>To run MozMill tests, one must install mozmill, and its dependencies: jsbridge and mozrunner</p>
<p>&lt;asuth&gt; <a class=" external" href="http://code.google.com/p/mozmill/" rel="freelink">http://code.google.com/p/mozmill/</a><br>
1:16pmasuth:<br>
&lt;asuth&gt; <a class=" external" href="http://code.google.com/p/jsbridge/" rel="freelink">http://code.google.com/p/jsbridge/</a><br>
1:16pmasuth:<br>
&lt;asuth&gt; <a class=" external" href="http://code.google.com/p/mozrunner/" rel="freelink">http://code.google.com/p/mozrunner/</a><br>
1:16pmasuth:<br>
&lt;asuth&gt; you probably want the trunk versions<br>
1:16pmasuth:<br>
&lt;asuth&gt; you'll want to do "sudo python setup.py develop" for each of those, in general<br>
1:16pmasuth:<br>
&lt;asuth&gt; in the order: mozrunner, jsbridge, mozmill</p>
<p>&lt;asuth&gt; then in mail/test/mozmill there's a runtest.py dude<br>
1:19pmasuth:<br>
&lt;asuth&gt; and the tests are under there<br>
1:19pmasuth:<br>
python runtest.py -t folder-display</p>
<p>or python runtest.py -t folder-display/test-name.js for just one</p>
Revert to this revision