📄 class_text_test_runner.html
字号:
</td> <td><p>Returns the result of the test run. Use this after calling run() to access the result of the test run. </td> </tr></table><a class="anchor" name="a2" doxytag="TextTestRunner::run" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool TextTestRunner::run </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::string </td> <td class="mdname" nowrap> <em>testName</em> = <code>""</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>doWait</em> = <code>false</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>doPrintResult</em> = <code>true</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>doPrintProgress</em> = <code>true</code></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Runs the named test case.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>testName</em> </td><td>Name of the test case to run. If an empty is given, then all added tests are run. The name can be the name of any test in the hierarchy. </td></tr> <tr><td></td><td valign=top><em>doWait</em> </td><td>if <code>true</code> then the user must press the RETURN key before the run() method exit. </td></tr> <tr><td></td><td valign=top><em>doPrintResult</em> </td><td>if <code>true</code> (default) then the test result are printed on the standard output. </td></tr> <tr><td></td><td valign=top><em>doPrintProgress</em> </td><td>if <code>true</code> (default) then <a class="el" href="class_text_test_progress_listener.html">TextTestProgressListener</a> is used to show the progress. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd><code>true</code> is the test was successful, <code>false</code> if the test failed or was not found. </dd></dl> </td> </tr></table><a class="anchor" name="a3" doxytag="TextTestRunner::setOutputter" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void TextTestRunner::setOutputter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_outputter.html">Outputter</a> * </td> <td class="mdname1" valign="top" nowrap> <em>outputter</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Specifies an alternate outputter.<p>Notes that the outputter will be use after the test run only if <em>printResult</em> was <code>true</code>. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>outputter</em> </td><td>New outputter to use. The previous outputter is destroyed. The TextTestRunner assumes ownership of the outputter. </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_compiler_outputter.html">CompilerOutputter</a>, <a class="el" href="class_xml_outputter.html">XmlOutputter</a>, <a class="el" href="class_text_outputter.html">TextOutputter</a>. </dd></dl> </td> </tr></table><a class="anchor" name="b0" doxytag="TextTestRunner::wait" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void TextTestRunner::wait </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>doWait</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="p1" doxytag="TextTestRunner::m_eventManager" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="class_test_result.html">TestResult</a>* <a class="el" href="class_text_test_runner.html#p1">TextTestRunner::m_eventManager</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="p2" doxytag="TextTestRunner::m_outputter" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="class_outputter.html">Outputter</a>* <a class="el" href="class_text_test_runner.html#p2">TextTestRunner::m_outputter</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="p0" doxytag="TextTestRunner::m_result" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="class_test_result_collector.html">TestResultCollector</a>* <a class="el" href="class_text_test_runner.html#p0">TextTestRunner::m_result</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="ui_2text_2_text_test_runner_8h-source.html">ui/text/TextTestRunner.h</a><li><a class="el" href="_text_test_runner_8cpp.html">TextTestRunner.cpp</a></ul><hr><table width="100%"> <tr> <td width="10%" align="left" valign="center"> <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=11795" width="88" height="31" border="0" alt="SourceForge Logo"></a> </td> <td width="20%" align="left" valign="center"> hosts this site. </td> <td> </td> <td align="right" valign="center"> Send comments to:<br> <a href="mailto:cppunit-devel@lists.sourceforge.net">CppUnit Developers</a> </td> </tr></table></body> </html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -