Home | History | Annotate | Download | only in pydoc
      1 
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      3 <html><head><title>Python: module telemetry.testing.progress_reporter</title>
      4 <meta charset="utf-8">
      5 </head><body bgcolor="#f0f0f8">
      6 
      7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
      8 <tr bgcolor="#7799ee">
      9 <td valign=bottom>&nbsp;<br>
     10 <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.testing.html"><font color="#ffffff">testing</font></a>.progress_reporter</strong></big></big></font></td
     11 ><td align=right valign=bottom
     12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/testing/progress_reporter.py">telemetry/testing/progress_reporter.py</a></font></td></tr></table>
     13     <p><tt>#&nbsp;Copyright&nbsp;2014&nbsp;The&nbsp;Chromium&nbsp;Authors.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
     14 #&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
     15 #&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p>
     16 <p>
     17 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     18 <tr bgcolor="#aa55cc">
     19 <td colspan=3 valign=bottom>&nbsp;<br>
     20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
     21     
     22 <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     23 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.testing.options_for_unittests.html">telemetry.testing.options_for_unittests</a><br>
     24 </td><td width="25%" valign=top><a href="telemetry.internal.util.path.html">telemetry.internal.util.path</a><br>
     25 </td><td width="25%" valign=top><a href="sys.html">sys</a><br>
     26 </td><td width="25%" valign=top><a href="unittest.html">unittest</a><br>
     27 </td></tr></table></td></tr></table><p>
     28 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     29 <tr bgcolor="#ee77aa">
     30 <td colspan=3 valign=bottom>&nbsp;<br>
     31 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
     32     
     33 <tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     34 <td width="100%"><dl>
     35 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
     36 </font></dt><dd>
     37 <dl>
     38 <dt><font face="helvetica, arial"><a href="telemetry.testing.progress_reporter.html#ProgressReporter">ProgressReporter</a>
     39 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.testing.progress_reporter.html#TestRunner">TestRunner</a>
     40 </font></dt></dl>
     41 </dd>
     42 <dt><font face="helvetica, arial"><a href="unittest.result.html#TestResult">unittest.result.TestResult</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
     43 </font></dt><dd>
     44 <dl>
     45 <dt><font face="helvetica, arial"><a href="telemetry.testing.progress_reporter.html#TestResult">TestResult</a>
     46 </font></dt></dl>
     47 </dd>
     48 <dt><font face="helvetica, arial"><a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a>(<a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>)
     49 </font></dt><dd>
     50 <dl>
     51 <dt><font face="helvetica, arial"><a href="telemetry.testing.progress_reporter.html#TestSuite">TestSuite</a>
     52 </font></dt></dl>
     53 </dd>
     54 </dl>
     55  <p>
     56 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     57 <tr bgcolor="#ffc8d8">
     58 <td colspan=3 valign=bottom>&nbsp;<br>
     59 <font color="#000000" face="helvetica, arial"><a name="ProgressReporter">class <strong>ProgressReporter</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
     60     
     61 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
     62 <td width="100%">Methods defined here:<br>
     63 <dl><dt><a name="ProgressReporter-Error"><strong>Error</strong></a>(self, test, err)</dt></dl>
     64 
     65 <dl><dt><a name="ProgressReporter-Failure"><strong>Failure</strong></a>(self, test, err)</dt></dl>
     66 
     67 <dl><dt><a name="ProgressReporter-Skip"><strong>Skip</strong></a>(self, test, reason)</dt></dl>
     68 
     69 <dl><dt><a name="ProgressReporter-StartTest"><strong>StartTest</strong></a>(self, test)</dt></dl>
     70 
     71 <dl><dt><a name="ProgressReporter-StartTestRun"><strong>StartTestRun</strong></a>(self)</dt></dl>
     72 
     73 <dl><dt><a name="ProgressReporter-StartTestSuite"><strong>StartTestSuite</strong></a>(self, suite)</dt></dl>
     74 
     75 <dl><dt><a name="ProgressReporter-StopTest"><strong>StopTest</strong></a>(self, test)</dt></dl>
     76 
     77 <dl><dt><a name="ProgressReporter-StopTestRun"><strong>StopTestRun</strong></a>(self, result)</dt></dl>
     78 
     79 <dl><dt><a name="ProgressReporter-StopTestSuite"><strong>StopTestSuite</strong></a>(self, suite)</dt></dl>
     80 
     81 <dl><dt><a name="ProgressReporter-Success"><strong>Success</strong></a>(self, test)</dt></dl>
     82 
     83 <dl><dt><a name="ProgressReporter-__init__"><strong>__init__</strong></a>(self, output_stream)</dt></dl>
     84 
     85 <hr>
     86 Data descriptors defined here:<br>
     87 <dl><dt><strong>__dict__</strong></dt>
     88 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
     89 </dl>
     90 <dl><dt><strong>__weakref__</strong></dt>
     91 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
     92 </dl>
     93 </td></tr></table> <p>
     94 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
     95 <tr bgcolor="#ffc8d8">
     96 <td colspan=3 valign=bottom>&nbsp;<br>
     97 <font color="#000000" face="helvetica, arial"><a name="TestResult">class <strong>TestResult</strong></a>(<a href="unittest.result.html#TestResult">unittest.result.TestResult</a>)</font></td></tr>
     98     
     99 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    100 <td width="100%"><dl><dt>Method resolution order:</dt>
    101 <dd><a href="telemetry.testing.progress_reporter.html#TestResult">TestResult</a></dd>
    102 <dd><a href="unittest.result.html#TestResult">unittest.result.TestResult</a></dd>
    103 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
    104 </dl>
    105 <hr>
    106 Methods defined here:<br>
    107 <dl><dt><a name="TestResult-__init__"><strong>__init__</strong></a>(self, progress_reporters)</dt></dl>
    108 
    109 <dl><dt><a name="TestResult-addError"><strong>addError</strong></a>(self, test, err)</dt></dl>
    110 
    111 <dl><dt><a name="TestResult-addFailure"><strong>addFailure</strong></a>(self, test, err)</dt></dl>
    112 
    113 <dl><dt><a name="TestResult-addSkip"><strong>addSkip</strong></a>(self, test, reason)</dt></dl>
    114 
    115 <dl><dt><a name="TestResult-addSuccess"><strong>addSuccess</strong></a>(self, test)</dt></dl>
    116 
    117 <dl><dt><a name="TestResult-startTest"><strong>startTest</strong></a>(self, test)</dt></dl>
    118 
    119 <dl><dt><a name="TestResult-startTestRun"><strong>startTestRun</strong></a>(self)</dt></dl>
    120 
    121 <dl><dt><a name="TestResult-startTestSuite"><strong>startTestSuite</strong></a>(self, suite)</dt></dl>
    122 
    123 <dl><dt><a name="TestResult-stopTest"><strong>stopTest</strong></a>(self, test)</dt></dl>
    124 
    125 <dl><dt><a name="TestResult-stopTestRun"><strong>stopTestRun</strong></a>(self)</dt></dl>
    126 
    127 <dl><dt><a name="TestResult-stopTestSuite"><strong>stopTestSuite</strong></a>(self, suite)</dt></dl>
    128 
    129 <hr>
    130 Data descriptors defined here:<br>
    131 <dl><dt><strong>failures_and_errors</strong></dt>
    132 </dl>
    133 <hr>
    134 Methods inherited from <a href="unittest.result.html#TestResult">unittest.result.TestResult</a>:<br>
    135 <dl><dt><a name="TestResult-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
    136 
    137 <dl><dt><a name="TestResult-addExpectedFailure"><strong>addExpectedFailure</strong></a>(self, test, err)</dt><dd><tt>Called&nbsp;when&nbsp;an&nbsp;expected&nbsp;failure/error&nbsp;occured.</tt></dd></dl>
    138 
    139 <dl><dt><a name="TestResult-addUnexpectedSuccess"><strong>addUnexpectedSuccess</strong></a>(self, *args, **kw)</dt><dd><tt>Called&nbsp;when&nbsp;a&nbsp;test&nbsp;was&nbsp;expected&nbsp;to&nbsp;fail,&nbsp;but&nbsp;succeed.</tt></dd></dl>
    140 
    141 <dl><dt><a name="TestResult-printErrors"><strong>printErrors</strong></a>(self)</dt><dd><tt>Called&nbsp;by&nbsp;<a href="#TestRunner">TestRunner</a>&nbsp;after&nbsp;test&nbsp;run</tt></dd></dl>
    142 
    143 <dl><dt><a name="TestResult-stop"><strong>stop</strong></a>(self)</dt><dd><tt>Indicates&nbsp;that&nbsp;the&nbsp;tests&nbsp;should&nbsp;be&nbsp;aborted</tt></dd></dl>
    144 
    145 <dl><dt><a name="TestResult-wasSuccessful"><strong>wasSuccessful</strong></a>(self)</dt><dd><tt>Tells&nbsp;whether&nbsp;or&nbsp;not&nbsp;this&nbsp;result&nbsp;was&nbsp;a&nbsp;success</tt></dd></dl>
    146 
    147 <hr>
    148 Data descriptors inherited from <a href="unittest.result.html#TestResult">unittest.result.TestResult</a>:<br>
    149 <dl><dt><strong>__dict__</strong></dt>
    150 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
    151 </dl>
    152 <dl><dt><strong>__weakref__</strong></dt>
    153 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    154 </dl>
    155 </td></tr></table> <p>
    156 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    157 <tr bgcolor="#ffc8d8">
    158 <td colspan=3 valign=bottom>&nbsp;<br>
    159 <font color="#000000" face="helvetica, arial"><a name="TestRunner">class <strong>TestRunner</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    160     
    161 <tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
    162 <td width="100%">Methods defined here:<br>
    163 <dl><dt><a name="TestRunner-run"><strong>run</strong></a>(self, test, progress_reporters, repeat_count, args)</dt></dl>
    164 
    165 <hr>
    166 Data descriptors defined here:<br>
    167 <dl><dt><strong>__dict__</strong></dt>
    168 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
    169 </dl>
    170 <dl><dt><strong>__weakref__</strong></dt>
    171 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    172 </dl>
    173 </td></tr></table> <p>
    174 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
    175 <tr bgcolor="#ffc8d8">
    176 <td colspan=3 valign=bottom>&nbsp;<br>
    177 <font color="#000000" face="helvetica, arial"><a name="TestSuite">class <strong>TestSuite</strong></a>(<a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a>)</font></td></tr>
    178     
    179 <tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
    180 <td colspan=2><tt><a href="#TestSuite">TestSuite</a>&nbsp;that&nbsp;can&nbsp;delegate&nbsp;start&nbsp;and&nbsp;stop&nbsp;calls&nbsp;to&nbsp;a&nbsp;<a href="#TestResult">TestResult</a>&nbsp;<a href="__builtin__.html#object">object</a>.<br>&nbsp;</tt></td></tr>
    181 <tr><td>&nbsp;</td>
    182 <td width="100%"><dl><dt>Method resolution order:</dt>
    183 <dd><a href="telemetry.testing.progress_reporter.html#TestSuite">TestSuite</a></dd>
    184 <dd><a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a></dd>
    185 <dd><a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a></dd>
    186 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
    187 </dl>
    188 <hr>
    189 Methods defined here:<br>
    190 <dl><dt><a name="TestSuite-run"><strong>run</strong></a>(self, result)</dt></dl>
    191 
    192 <hr>
    193 Methods inherited from <a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a>:<br>
    194 <dl><dt><a name="TestSuite-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run&nbsp;the&nbsp;tests&nbsp;without&nbsp;collecting&nbsp;errors&nbsp;in&nbsp;a&nbsp;<a href="#TestResult">TestResult</a></tt></dd></dl>
    195 
    196 <hr>
    197 Methods inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br>
    198 <dl><dt><a name="TestSuite-__call__"><strong>__call__</strong></a>(self, *args, **kwds)</dt></dl>
    199 
    200 <dl><dt><a name="TestSuite-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>
    201 
    202 <dl><dt><a name="TestSuite-__init__"><strong>__init__</strong></a>(self, tests<font color="#909090">=()</font>)</dt></dl>
    203 
    204 <dl><dt><a name="TestSuite-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>
    205 
    206 <dl><dt><a name="TestSuite-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>
    207 
    208 <dl><dt><a name="TestSuite-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
    209 
    210 <dl><dt><a name="TestSuite-addTest"><strong>addTest</strong></a>(self, test)</dt></dl>
    211 
    212 <dl><dt><a name="TestSuite-addTests"><strong>addTests</strong></a>(self, tests)</dt></dl>
    213 
    214 <dl><dt><a name="TestSuite-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl>
    215 
    216 <hr>
    217 Data descriptors inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br>
    218 <dl><dt><strong>__dict__</strong></dt>
    219 <dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
    220 </dl>
    221 <dl><dt><strong>__weakref__</strong></dt>
    222 <dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
    223 </dl>
    224 <hr>
    225 Data and other attributes inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br>
    226 <dl><dt><strong>__hash__</strong> = None</dl>
    227 
    228 </td></tr></table></td></tr></table>
    229 </body></html>