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> <br> 10 <font color="#ffffff" face="helvetica, arial"> <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># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14 # Use of this source code is governed by a BSD-style license that can be<br> 15 # found in the LICENSE 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> <br> 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </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> <br> 31 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 32 33 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </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> <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> </tt></td><td> </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 for instance variables (if defined)</tt></dd> 89 </dl> 90 <dl><dt><strong>__weakref__</strong></dt> 91 <dd><tt>list of weak references to the object (if 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> <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> </tt></td><td> </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 when an expected failure/error occured.</tt></dd></dl> 138 139 <dl><dt><a name="TestResult-addUnexpectedSuccess"><strong>addUnexpectedSuccess</strong></a>(self, *args, **kw)</dt><dd><tt>Called when a test was expected to fail, but succeed.</tt></dd></dl> 140 141 <dl><dt><a name="TestResult-printErrors"><strong>printErrors</strong></a>(self)</dt><dd><tt>Called by <a href="#TestRunner">TestRunner</a> after test run</tt></dd></dl> 142 143 <dl><dt><a name="TestResult-stop"><strong>stop</strong></a>(self)</dt><dd><tt>Indicates that the tests should be aborted</tt></dd></dl> 144 145 <dl><dt><a name="TestResult-wasSuccessful"><strong>wasSuccessful</strong></a>(self)</dt><dd><tt>Tells whether or not this result was a 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 for instance variables (if defined)</tt></dd> 151 </dl> 152 <dl><dt><strong>__weakref__</strong></dt> 153 <dd><tt>list of weak references to the object (if 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> <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> </tt></td><td> </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 for instance variables (if defined)</tt></dd> 169 </dl> 170 <dl><dt><strong>__weakref__</strong></dt> 171 <dd><tt>list of weak references to the object (if 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> <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> </tt></td> 180 <td colspan=2><tt><a href="#TestSuite">TestSuite</a> that can delegate start and stop calls to a <a href="#TestResult">TestResult</a> <a href="__builtin__.html#object">object</a>.<br> </tt></td></tr> 181 <tr><td> </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 the tests without collecting errors in a <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 for instance variables (if defined)</tt></dd> 220 </dl> 221 <dl><dt><strong>__weakref__</strong></dt> 222 <dd><tt>list of weak references to the object (if 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>