1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.DebugClients.Python.DCTestResult</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.DebugClients.Python.DCTestResult</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a TestResult derivative for the eric debugger. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#DCTestResult">DCTestResult</a></td> |
|
25 <td>A TestResult derivative to work with eric's debug client.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="DCTestResult" ID="DCTestResult"></a> |
|
36 <h2>DCTestResult</h2> |
|
37 |
|
38 <p> |
|
39 A TestResult derivative to work with eric's debug client. |
|
40 </p> |
|
41 <p> |
|
42 For more details see unittest.py of the standard python distribution. |
|
43 </p> |
|
44 <h3>Derived from</h3> |
|
45 TestResult |
|
46 <h3>Class Attributes</h3> |
|
47 |
|
48 <table> |
|
49 <tr><td>None</td></tr> |
|
50 </table> |
|
51 <h3>Class Methods</h3> |
|
52 |
|
53 <table> |
|
54 <tr><td>None</td></tr> |
|
55 </table> |
|
56 <h3>Methods</h3> |
|
57 |
|
58 <table> |
|
59 |
|
60 <tr> |
|
61 <td><a href="#DCTestResult.__init__">DCTestResult</a></td> |
|
62 <td>Constructor</td> |
|
63 </tr> |
|
64 <tr> |
|
65 <td><a href="#DCTestResult.addError">addError</a></td> |
|
66 <td>Public method called if a test errored.</td> |
|
67 </tr> |
|
68 <tr> |
|
69 <td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td> |
|
70 <td>Public method called if a test failed expected.</td> |
|
71 </tr> |
|
72 <tr> |
|
73 <td><a href="#DCTestResult.addFailure">addFailure</a></td> |
|
74 <td>Public method called if a test failed.</td> |
|
75 </tr> |
|
76 <tr> |
|
77 <td><a href="#DCTestResult.addSkip">addSkip</a></td> |
|
78 <td>Public method called if a test was skipped.</td> |
|
79 </tr> |
|
80 <tr> |
|
81 <td><a href="#DCTestResult.addSubTest">addSubTest</a></td> |
|
82 <td>Public method called for each subtest to record its result.</td> |
|
83 </tr> |
|
84 <tr> |
|
85 <td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td> |
|
86 <td>Public method called if a test succeeded expectedly.</td> |
|
87 </tr> |
|
88 <tr> |
|
89 <td><a href="#DCTestResult.startTest">startTest</a></td> |
|
90 <td>Public method called at the start of a test.</td> |
|
91 </tr> |
|
92 <tr> |
|
93 <td><a href="#DCTestResult.stopTest">stopTest</a></td> |
|
94 <td>Public method called at the end of a test.</td> |
|
95 </tr> |
|
96 </table> |
|
97 <h3>Static Methods</h3> |
|
98 |
|
99 <table> |
|
100 <tr><td>None</td></tr> |
|
101 </table> |
|
102 |
|
103 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> |
|
104 <h4>DCTestResult (Constructor)</h4> |
|
105 <b>DCTestResult</b>(<i>dbgClient, failfast</i>) |
|
106 |
|
107 <p> |
|
108 Constructor |
|
109 </p> |
|
110 <dl> |
|
111 |
|
112 <dt><i>dbgClient</i> (DebugClientBase)</dt> |
|
113 <dd> |
|
114 reference to the debug client |
|
115 </dd> |
|
116 <dt><i>failfast</i> (bool)</dt> |
|
117 <dd> |
|
118 flag indicating to stop at the first error |
|
119 </dd> |
|
120 </dl> |
|
121 <a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> |
|
122 <h4>DCTestResult.addError</h4> |
|
123 <b>addError</b>(<i>test, err</i>) |
|
124 |
|
125 <p> |
|
126 Public method called if a test errored. |
|
127 </p> |
|
128 <dl> |
|
129 |
|
130 <dt><i>test</i></dt> |
|
131 <dd> |
|
132 Reference to the test object |
|
133 </dd> |
|
134 <dt><i>err</i></dt> |
|
135 <dd> |
|
136 The error traceback |
|
137 </dd> |
|
138 </dl> |
|
139 <a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a> |
|
140 <h4>DCTestResult.addExpectedFailure</h4> |
|
141 <b>addExpectedFailure</b>(<i>test, err</i>) |
|
142 |
|
143 <p> |
|
144 Public method called if a test failed expected. |
|
145 </p> |
|
146 <dl> |
|
147 |
|
148 <dt><i>test</i></dt> |
|
149 <dd> |
|
150 reference to the test object |
|
151 </dd> |
|
152 <dt><i>err</i></dt> |
|
153 <dd> |
|
154 error traceback |
|
155 </dd> |
|
156 </dl> |
|
157 <a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> |
|
158 <h4>DCTestResult.addFailure</h4> |
|
159 <b>addFailure</b>(<i>test, err</i>) |
|
160 |
|
161 <p> |
|
162 Public method called if a test failed. |
|
163 </p> |
|
164 <dl> |
|
165 |
|
166 <dt><i>test</i></dt> |
|
167 <dd> |
|
168 Reference to the test object |
|
169 </dd> |
|
170 <dt><i>err</i></dt> |
|
171 <dd> |
|
172 The error traceback |
|
173 </dd> |
|
174 </dl> |
|
175 <a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a> |
|
176 <h4>DCTestResult.addSkip</h4> |
|
177 <b>addSkip</b>(<i>test, reason</i>) |
|
178 |
|
179 <p> |
|
180 Public method called if a test was skipped. |
|
181 </p> |
|
182 <dl> |
|
183 |
|
184 <dt><i>test</i></dt> |
|
185 <dd> |
|
186 reference to the test object |
|
187 </dd> |
|
188 <dt><i>reason</i></dt> |
|
189 <dd> |
|
190 reason for skipping the test (string) |
|
191 </dd> |
|
192 </dl> |
|
193 <a NAME="DCTestResult.addSubTest" ID="DCTestResult.addSubTest"></a> |
|
194 <h4>DCTestResult.addSubTest</h4> |
|
195 <b>addSubTest</b>(<i>test, subtest, err</i>) |
|
196 |
|
197 <p> |
|
198 Public method called for each subtest to record its result. |
|
199 </p> |
|
200 <dl> |
|
201 |
|
202 <dt><i>test</i></dt> |
|
203 <dd> |
|
204 reference to the test object |
|
205 </dd> |
|
206 <dt><i>subtest</i></dt> |
|
207 <dd> |
|
208 reference to the subtest object |
|
209 </dd> |
|
210 <dt><i>err</i></dt> |
|
211 <dd> |
|
212 error traceback |
|
213 </dd> |
|
214 </dl> |
|
215 <a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a> |
|
216 <h4>DCTestResult.addUnexpectedSuccess</h4> |
|
217 <b>addUnexpectedSuccess</b>(<i>test</i>) |
|
218 |
|
219 <p> |
|
220 Public method called if a test succeeded expectedly. |
|
221 </p> |
|
222 <dl> |
|
223 |
|
224 <dt><i>test</i></dt> |
|
225 <dd> |
|
226 reference to the test object |
|
227 </dd> |
|
228 </dl> |
|
229 <a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> |
|
230 <h4>DCTestResult.startTest</h4> |
|
231 <b>startTest</b>(<i>test</i>) |
|
232 |
|
233 <p> |
|
234 Public method called at the start of a test. |
|
235 </p> |
|
236 <dl> |
|
237 |
|
238 <dt><i>test</i></dt> |
|
239 <dd> |
|
240 Reference to the test object |
|
241 </dd> |
|
242 </dl> |
|
243 <a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> |
|
244 <h4>DCTestResult.stopTest</h4> |
|
245 <b>stopTest</b>(<i>test</i>) |
|
246 |
|
247 <p> |
|
248 Public method called at the end of a test. |
|
249 </p> |
|
250 <dl> |
|
251 |
|
252 <dt><i>test</i></dt> |
|
253 <dd> |
|
254 Reference to the test object |
|
255 </dd> |
|
256 </dl> |
|
257 <div align="right"><a href="#top">Up</a></div> |
|
258 <hr /> |
|
259 </body></html> |
|