Documentation/Source/eric5.DebugClients.Python.DCTestResult.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.DebugClients.Python.DCTestResult</h1> 23 <h1>eric5.DebugClients.Python.DCTestResult</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#84;&#101;&#115;&#116;&#82;&#101;&#115;&#117;&#108;&#116; &#100;&#101;&#114;&#105;v&#97;&#116;&#105;v&#101; &#102;&#111;&#114; &#116;&#104;&#101; &#101;&#114;&#105;&#99;&#53; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114;. 25 Module implementing a TestResult derivative for the eric5 debugger.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#DCTestResult">DCTestResult</a></td> 34 <td><a href="#DCTestResult">DCTestResult</a></td>
35 <td>&#65; &#84;&#101;&#115;&#116;&#82;&#101;&#115;&#117;&#108;&#116; &#100;&#101;&#114;&#105;v&#97;&#116;&#105;v&#101; &#116;&#111; w&#111;&#114;&#107; w&#105;&#116;&#104; &#101;&#114;&#105;&#99;&#53;'&#115; &#100;&#101;&#98;&#117;&#103; &#99;&#108;&#105;&#101;&#110;&#116;.</td> 35 <td>A TestResult derivative to work with eric5's debug client.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="DCTestResult" ID="DCTestResult"></a> 43 <a NAME="DCTestResult" ID="DCTestResult"></a>
44 <h2>DCTestResult</h2> 44 <h2>DCTestResult</h2>
45 <p> 45 <p>
46 &#65; &#84;&#101;&#115;&#116;&#82;&#101;&#115;&#117;&#108;&#116; &#100;&#101;&#114;&#105;v&#97;&#116;&#105;v&#101; &#116;&#111; w&#111;&#114;&#107; w&#105;&#116;&#104; &#101;&#114;&#105;&#99;&#53;'&#115; &#100;&#101;&#98;&#117;&#103; &#99;&#108;&#105;&#101;&#110;&#116;. 46 A TestResult derivative to work with eric5's debug client.
47 </p><p> 47 </p><p>
48 &#70;&#111;&#114; &#109;&#111;&#114;&#101; &#100;&#101;&#116;&#97;&#105;&#108;&#115; &#115;&#101;&#101; &#117;&#110;&#105;&#116;&#116;&#101;&#115;&#116;.&#112;y &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#114;&#100; &#112;y&#116;&#104;&#111;&#110; &#100;&#105;&#115;&#116;&#114;&#105;&#98;&#117;&#116;&#105;&#111;&#110;. 48 For more details see unittest.py of the standard python distribution.
49 </p> 49 </p>
50 <h3>Derived from</h3> 50 <h3>Derived from</h3>
51 TestResult 51 TestResult
52 <h3>Class Attributes</h3> 52 <h3>Class Attributes</h3>
53 <table> 53 <table>
55 </table> 55 </table>
56 <h3>Methods</h3> 56 <h3>Methods</h3>
57 <table> 57 <table>
58 <tr> 58 <tr>
59 <td><a href="#DCTestResult.__init__">DCTestResult</a></td> 59 <td><a href="#DCTestResult.__init__">DCTestResult</a></td>
60 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 60 <td>Constructor</td>
61 </tr><tr> 61 </tr><tr>
62 <td><a href="#DCTestResult.addError">addError</a></td> 62 <td><a href="#DCTestResult.addError">addError</a></td>
63 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#101;&#100;.</td> 63 <td>Method called if a test errored.</td>
64 </tr><tr> 64 </tr><tr>
65 <td><a href="#DCTestResult.addFailure">addFailure</a></td> 65 <td><a href="#DCTestResult.addFailure">addFailure</a></td>
66 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#101;&#100;.</td> 66 <td>Method called if a test failed.</td>
67 </tr><tr> 67 </tr><tr>
68 <td><a href="#DCTestResult.startTest">startTest</a></td> 68 <td><a href="#DCTestResult.startTest">startTest</a></td>
69 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#111;&#102; &#97; &#116;&#101;&#115;&#116;.</td> 69 <td>Method called at the start of a test.</td>
70 </tr><tr> 70 </tr><tr>
71 <td><a href="#DCTestResult.stopTest">stopTest</a></td> 71 <td><a href="#DCTestResult.stopTest">stopTest</a></td>
72 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#101;&#110;&#100; &#111;&#102; &#97; &#116;&#101;&#115;&#116;.</td> 72 <td>Method called at the end of a test.</td>
73 </tr> 73 </tr>
74 </table> 74 </table>
75 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> 75 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a>
76 <h4>DCTestResult (Constructor)</h4> 76 <h4>DCTestResult (Constructor)</h4>
77 <b>DCTestResult</b>(<i>parent</i>) 77 <b>DCTestResult</b>(<i>parent</i>)
78 <p> 78 <p>
79 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 79 Constructor
80 </p><dl> 80 </p><dl>
81 <dt><i>parent</i></dt> 81 <dt><i>parent</i></dt>
82 <dd> 82 <dd>
83 &#84;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116;. 83 The parent widget.
84 </dd> 84 </dd>
85 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> 85 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a>
86 <h4>DCTestResult.addError</h4> 86 <h4>DCTestResult.addError</h4>
87 <b>addError</b>(<i>test, err</i>) 87 <b>addError</b>(<i>test, err</i>)
88 <p> 88 <p>
89 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#101;&#100;. 89 Method called if a test errored.
90 </p><dl> 90 </p><dl>
91 <dt><i>test</i></dt> 91 <dt><i>test</i></dt>
92 <dd> 92 <dd>
93 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 93 Reference to the test object
94 </dd><dt><i>err</i></dt> 94 </dd><dt><i>err</i></dt>
95 <dd> 95 <dd>
96 &#84;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; 96 The error traceback
97 </dd> 97 </dd>
98 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> 98 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a>
99 <h4>DCTestResult.addFailure</h4> 99 <h4>DCTestResult.addFailure</h4>
100 <b>addFailure</b>(<i>test, err</i>) 100 <b>addFailure</b>(<i>test, err</i>)
101 <p> 101 <p>
102 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#101;&#100;. 102 Method called if a test failed.
103 </p><dl> 103 </p><dl>
104 <dt><i>test</i></dt> 104 <dt><i>test</i></dt>
105 <dd> 105 <dd>
106 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 106 Reference to the test object
107 </dd><dt><i>err</i></dt> 107 </dd><dt><i>err</i></dt>
108 <dd> 108 <dd>
109 &#84;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; 109 The error traceback
110 </dd> 110 </dd>
111 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> 111 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a>
112 <h4>DCTestResult.startTest</h4> 112 <h4>DCTestResult.startTest</h4>
113 <b>startTest</b>(<i>test</i>) 113 <b>startTest</b>(<i>test</i>)
114 <p> 114 <p>
115 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#111;&#102; &#97; &#116;&#101;&#115;&#116;. 115 Method called at the start of a test.
116 </p><dl> 116 </p><dl>
117 <dt><i>test</i></dt> 117 <dt><i>test</i></dt>
118 <dd> 118 <dd>
119 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 119 Reference to the test object
120 </dd> 120 </dd>
121 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> 121 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a>
122 <h4>DCTestResult.stopTest</h4> 122 <h4>DCTestResult.stopTest</h4>
123 <b>stopTest</b>(<i>test</i>) 123 <b>stopTest</b>(<i>test</i>)
124 <p> 124 <p>
125 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#101;&#110;&#100; &#111;&#102; &#97; &#116;&#101;&#115;&#116;. 125 Method called at the end of a test.
126 </p><dl> 126 </p><dl>
127 <dt><i>test</i></dt> 127 <dt><i>test</i></dt>
128 <dd> 128 <dd>
129 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 129 Reference to the test object
130 </dd> 130 </dd>
131 </dl> 131 </dl>
132 <div align="right"><a href="#top">Up</a></div> 132 <div align="right"><a href="#top">Up</a></div>
133 <hr /> 133 <hr />
134 </body></html> 134 </body></html>

eric ide

mercurial