1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.unittest.gtest_testrunner</title> 4</head><body bgcolor="#f0f0f8"> 5 6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 7<tr bgcolor="#7799ee"> 8<td valign=bottom> <br> 9<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.unittest.html"><font color="#ffffff">unittest</font></a>.gtest_testrunner</strong></big></big></font></td 10><td align=right valign=bottom 11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/unittest/gtest_testrunner.py">telemetry/unittest/gtest_testrunner.py</a></font></td></tr></table> 12 <p><tt>Implements a unittest TestRunner with GTest output.<br> 13 <br> 14This output is ported from gtest.cc's PrettyUnitTestResultPrinter, but<br> 15designed to be a drop-in replacement for unittest's TextTestRunner.</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.page.gtest_test_results.html">telemetry.page.gtest_test_results</a><br> 24</td><td width="25%" valign=top><a href="sys.html">sys</a><br> 25</td><td width="25%" valign=top><a href="time.html">time</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.unittest.gtest_testrunner.html#GTestTestRunner">GTestTestRunner</a> 39</font></dt></dl> 40</dd> 41<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>) 42</font></dt><dd> 43<dl> 44<dt><font face="helvetica, arial"><a href="telemetry.unittest.gtest_testrunner.html#GTestTestSuite">GTestTestSuite</a> 45</font></dt></dl> 46</dd> 47</dl> 48 <p> 49<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 50<tr bgcolor="#ffc8d8"> 51<td colspan=3 valign=bottom> <br> 52<font color="#000000" face="helvetica, arial"><a name="GTestTestRunner">class <strong>GTestTestRunner</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 53 54<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 55<td width="100%">Methods defined here:<br> 56<dl><dt><a name="GTestTestRunner-__init__"><strong>__init__</strong></a>(self, print_result_after_run<font color="#909090">=True</font>, runner<font color="#909090">=None</font>)</dt></dl> 57 58<dl><dt><a name="GTestTestRunner-run"><strong>run</strong></a>(self, test)</dt><dd><tt>Run the given test case or test suite.</tt></dd></dl> 59 60<hr> 61Data descriptors defined here:<br> 62<dl><dt><strong>__dict__</strong></dt> 63<dd><tt>dictionary for instance variables (if defined)</tt></dd> 64</dl> 65<dl><dt><strong>__weakref__</strong></dt> 66<dd><tt>list of weak references to the object (if defined)</tt></dd> 67</dl> 68</td></tr></table> <p> 69<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 70<tr bgcolor="#ffc8d8"> 71<td colspan=3 valign=bottom> <br> 72<font color="#000000" face="helvetica, arial"><a name="GTestTestSuite">class <strong>GTestTestSuite</strong></a>(<a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a>)</font></td></tr> 73 74<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 75<td width="100%"><dl><dt>Method resolution order:</dt> 76<dd><a href="telemetry.unittest.gtest_testrunner.html#GTestTestSuite">GTestTestSuite</a></dd> 77<dd><a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a></dd> 78<dd><a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a></dd> 79<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 80</dl> 81<hr> 82Methods defined here:<br> 83<dl><dt><a name="GTestTestSuite-__call__"><strong>__call__</strong></a>(self, *args, **kwargs)</dt></dl> 84 85<hr> 86Methods inherited from <a href="unittest.suite.html#TestSuite">unittest.suite.TestSuite</a>:<br> 87<dl><dt><a name="GTestTestSuite-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run the tests without collecting errors in a TestResult</tt></dd></dl> 88 89<dl><dt><a name="GTestTestSuite-run"><strong>run</strong></a>(self, result, debug<font color="#909090">=False</font>)</dt></dl> 90 91<hr> 92Methods inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br> 93<dl><dt><a name="GTestTestSuite-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl> 94 95<dl><dt><a name="GTestTestSuite-__init__"><strong>__init__</strong></a>(self, tests<font color="#909090">=()</font>)</dt></dl> 96 97<dl><dt><a name="GTestTestSuite-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> 98 99<dl><dt><a name="GTestTestSuite-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl> 100 101<dl><dt><a name="GTestTestSuite-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> 102 103<dl><dt><a name="GTestTestSuite-addTest"><strong>addTest</strong></a>(self, test)</dt></dl> 104 105<dl><dt><a name="GTestTestSuite-addTests"><strong>addTests</strong></a>(self, tests)</dt></dl> 106 107<dl><dt><a name="GTestTestSuite-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl> 108 109<hr> 110Data descriptors inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br> 111<dl><dt><strong>__dict__</strong></dt> 112<dd><tt>dictionary for instance variables (if defined)</tt></dd> 113</dl> 114<dl><dt><strong>__weakref__</strong></dt> 115<dd><tt>list of weak references to the object (if defined)</tt></dd> 116</dl> 117<hr> 118Data and other attributes inherited from <a href="unittest.suite.html#BaseTestSuite">unittest.suite.BaseTestSuite</a>:<br> 119<dl><dt><strong>__hash__</strong> = None</dl> 120 121</td></tr></table></td></tr></table> 122</body></html>