Compare Revisions

Thunderbird MozMill Testing

Revision 60530:

Revision 60530 by DavidA on

Revision 60531:

Revision 60531 by DavidA on

Title:
Thunderbird MozMill Testing
Thunderbird MozMill Testing
Slug:
Thunderbird/Thunderbird_MozMill_Testing
Thunderbird/Thunderbird_MozMill_Testing
Tags:
thunderbird, "Automated testing", "Developing Mozilla", MozMill
thunderbird, "Automated testing", "Developing Mozilla", MozMill
Content:

Revision 60530
Revision 60531
n19    <p>n19    <div class="note">
n24    </p>n24    </div>
n28    <p>n28    <div class="note">
29      <code>svn checkout <a class=" external" href="http://jsbrid29      <code>svn checkout <a class=" external" href="http://jsbrid
>sg.googlecode.com/svn/trunk/" rel="freelink">http://jsbridsg.goog>ge.googlecode.com/svn/trunk/" rel="freelink">http://jsbridge.goog
>lecode.com/svn/trunk/</a> mozrunner<br>>lecode.com/svn/trunk/</a>&nbsp;jsbridge<br>
n33    </p>n33    </div>
nn37    <div class="note">
38      <code style="color: rgb(37, 34, 29); font-weight: inherit;"
 >>svn checkout <a class=" external" href="http://mozmill.googlecod
 >e.com/svn/trunk/" rel="freelink">http://mozmill.googlecode.com/sv
 >n/trunk/</a>&nbsp;mozmill<br>
39      cd&nbsp;</code>mozmill<br>
40      <code style="color: rgb(37, 34, 29); font-weight: inherit;"
 >>sudo python setup.py develop<br>
41      cd .</code>
42    </div>
43    <h4>
44      Running a test suite:
45    </h4>
n38      <span style="font-family: Verdana,Tahoma,sans-serif;">svn cn47      The runtest.py driver takes a directory as argument: look i
>heckout <a class=" external" href="http://mozmill.googlecode.com/>n mail/test/mozmill for the set of existing test suites:
>svn/trunk/" rel="freelink">http://mozmill.googlecode.com/svn/trun 
>k/</a> mozmill<br> 
39      cd mozrunner</span><br>
40      sudo python setup.py develop<br>
41      cd ..<span style="font-family: Verdana,Tahoma,sans-serif;">
><br></span> 
nn49    <div class="note">
50      <code>cd mail/test/mozmill<br>
51      python runtest.py -t folder-display</code>
52    </div>
43    <p>53    <h4>
44      <code><span style="font-family: Verdana,Tahoma,sans-serif;"54      Running a specific test:
>>svn checkout <a class=" external" href="http://jsbridge.googleco 
>de.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 
>> 
45      sudo python setup.py develop<br>
46      cd ..<code><span style="font-family: Verdana,Tahoma,sans-se
>rif;"><br></span></code> 
47    </p>55    </h4>
56    <div class="note">
57      <code>cd mail/test/mozmill<br></code><code>python runtest.p
 >y -t folder-display/test-name.js</code>
58    </div>
t51    <p>t
52      &nbsp;
53    </p>
54    <p>
55      To run MozMill tests, one must install mozmill, and its dep
>endencies: jsbridge and mozrunner 
56    </p>
57    <p>
58      &lt;asuth&gt; <a class=" external" href="http://code.google
>.com/p/mozmill/" rel="freelink">http://code.google.com/p/mozmill/ 
></a><br> 
59      1:16pmasuth:<br>
60      &lt;asuth&gt; <a class=" external" href="http://code.google
>.com/p/jsbridge/" rel="freelink">http://code.google.com/p/jsbridg 
>e/</a><br> 
61      1:16pmasuth:<br>
62      &lt;asuth&gt; <a class=" external" href="http://code.google
>.com/p/mozrunner/" rel="freelink">http://code.google.com/p/mozrun 
>ner/</a><br> 
63      1:16pmasuth:<br>
64      &lt;asuth&gt; you probably want the trunk versions<br>
65      1:16pmasuth:<br>
66      &lt;asuth&gt; you'll want to do "sudo python setup.py devel
>op" for each of those, in general<br> 
67      1:16pmasuth:<br>
68      &lt;asuth&gt; in the order: mozrunner, jsbridge, mozmill
69    </p>
70    <p>
71      &lt;asuth&gt; then in mail/test/mozmill there's a runtest.p
>y dude<br> 
72      1:19pmasuth:<br>
73      &lt;asuth&gt; and the tests are under there<br>
74      1:19pmasuth:<br>
75      python runtest.py -t folder-display
76    </p>
77    <p>
78      or python runtest.py -t folder-display/test-name.js for jus
>t one 
79    </p>

Back to History