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

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

eric ide

mercurial