Thunderbird MozMill Testing

  • Revision slug: Thunderbird/Thunderbird_MozMill_Testing
  • Revision title: Thunderbird MozMill Testing
  • Revision id: 60532
  • 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://jsbridge.googlecode.com/svn/trunk/ jsbridge
cd jsbridge

sudo python setup.py develop
cd ..

and then mozmill itself:

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

Running a test suite:

The runtest.py driver takes a directory as argument: look in mail/test/mozmill for the set of existing test suites:

cd mail/test/mozmill
python runtest.py -t folder-display

Running a specific test:

cd mail/test/mozmill
python runtest.py -t folder-display/test-name.js

 

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 <a class="external" href="http://code.google.com/p/mozrunner/" title="http://code.google.com/p/mozrunner/">mozrunner</a>:</p>
<div class="note"><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></div>
<p>then do the same for <a class="external" href="http://code.google.com/p/jsbridge/" title="http://code.google.com/p/jsbridge/">jsbridge</a>:</p>
<div class="note"><code>svn checkout <a class=" external" href="http://jsbridge.googlecode.com/svn/trunk/" rel="freelink">http://jsbridge.googlecode.com/svn/trunk/</a> jsbridge<br>
cd jsbridge</code><br>
<code>sudo python setup.py develop<br>
cd ..</code></div>
<p>and then <a class="external" href="http://code.google.com/p/mozmill/" title="http://code.google.com/p/mozmill/">mozmill</a> itself:</p>
<div class="note"><code style="color: rgb(37, 34, 29); font-weight: inherit; ">svn checkout <a class=" external" href="http://mozmill.googlecode.com/svn/trunk/" rel="freelink">http://mozmill.googlecode.com/svn/trunk/</a> mozmill<br>
cd </code>mozmill<br>
<code style="color: rgb(37, 34, 29); font-weight: inherit; ">sudo python setup.py develop<br>
cd .</code></div><h4>Running a test suite:</h4>
<p>The runtest.py driver takes a directory as argument: look in mail/test/mozmill for the set of existing test suites:</p>
<div class="note"><code>cd mail/test/mozmill<br>
python runtest.py -t folder-display</code></div>
<h4>Running a specific test:</h4>
<div class="note"><code>cd mail/test/mozmill<br>
</code><code>python runtest.py -t folder-display/test-name.js</code></div>
<p> </p>
Revert to this revision