Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Test\Harness\Results.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test::Harness::Results - object for tracking results from a single test file</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Test::Harness::Results - object for tracking results from a single test file</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#construction">CONSTRUCTION</a></li> <ul> <li><a href="#new__"><code>new()</code></a></li> </ul> <li><a href="#accessors">ACCESSORS</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Test::Harness::Results - object for tracking results from a single test file</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <p>One Test::Harness::Results object represents the results from one test file getting analyzed.</p> <p> </p> <hr /> <h1><a name="construction">CONSTRUCTION</a></h1> <p> </p> <h2><a name="new__"><code>new()</code></a></h2> <pre> my $results = new Test::Harness::Results;</pre> <p>Create a test point object. Typically, however, you'll not create one yourself, but access a Results object returned to you by Test::Harness::Results.</p> <p> </p> <hr /> <h1><a name="accessors">ACCESSORS</a></h1> <p>The following data points are defined:</p> <pre> passing true if the whole test is considered a pass (or skipped), false if its a failure</pre> <pre> exit the exit code of the test run, if from a file wait the wait code of the test run, if from a file</pre> <pre> max total tests which should have been run seen total tests actually seen skip_all if the whole test was skipped, this will contain the reason.</pre> <pre> ok number of tests which passed (including todo and skips)</pre> <pre> todo number of todo tests seen bonus number of todo tests which unexpectedly passed</pre> <pre> skip number of tests skipped</pre> <p>So a successful test should have max == seen == ok.</p> <p>There is one final item, the details.</p> <pre> details an array ref reporting the result of each test looks like this:</pre> <pre> $results{details}[$test_num - 1] = { ok => is the test considered ok? actual_ok => did it literally say 'ok'? name => name of the test (if any) diagnostics => test diagnostics (if any) type => 'skip' or 'todo' (if any) reason => reason for the above (if any) };</pre> <p>Element 0 of the details is test #1. I tried it with element 1 being #1 and 0 being empty, this is less awkward.</p> <p>Each of the following fields has a getter and setter method.</p> <ul> <li><strong><a name="wait" class="item">wait</a></strong> <li><strong><a name="exit" class="item">exit</a></strong> </dl> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Test::Harness::Results - object for tracking results from a single test file</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de