eric6/Documentation/Source/eric6.PyUnit.UnittestDialog.html

changeset 7273
391d6b7b1eff
parent 7075
e22ca9d9ac5f
child 7900
72b88fb20261
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.PyUnit.UnittestDialog</h1> 23 <h1>eric6.PyUnit.UnittestDialog</h1>
24
23 <p> 25 <p>
24 Module implementing the UI to the pyunit package. 26 Module implementing the UI to the pyunit package.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#QtTestResult">QtTestResult</a></td> 38 <td><a href="#QtTestResult">QtTestResult</a></td>
34 <td>A TestResult derivative to work with a graphical GUI.</td> 39 <td>A TestResult derivative to work with a graphical GUI.</td>
35 </tr><tr> 40 </tr>
41 <tr>
36 <td><a href="#UnittestDialog">UnittestDialog</a></td> 42 <td><a href="#UnittestDialog">UnittestDialog</a></td>
37 <td>Class implementing the UI to the pyunit package.</td> 43 <td>Class implementing the UI to the pyunit package.</td>
38 </tr><tr> 44 </tr>
45 <tr>
39 <td><a href="#UnittestWindow">UnittestWindow</a></td> 46 <td><a href="#UnittestWindow">UnittestWindow</a></td>
40 <td>Main window class for the standalone dialog.</td> 47 <td>Main window class for the standalone dialog.</td>
41 </tr> 48 </tr>
42 </table> 49 </table>
43 <h3>Functions</h3> 50 <h3>Functions</h3>
51
44 <table> 52 <table>
45 <tr><td>None</td></tr> 53 <tr><td>None</td></tr>
46 </table> 54 </table>
47 <hr /><hr /> 55 <hr />
56 <hr />
48 <a NAME="QtTestResult" ID="QtTestResult"></a> 57 <a NAME="QtTestResult" ID="QtTestResult"></a>
49 <h2>QtTestResult</h2> 58 <h2>QtTestResult</h2>
59
50 <p> 60 <p>
51 A TestResult derivative to work with a graphical GUI. 61 A TestResult derivative to work with a graphical GUI.
52 </p><p> 62 </p>
63 <p>
53 For more details see pyunit.py of the standard Python distribution. 64 For more details see pyunit.py of the standard Python distribution.
54 </p> 65 </p>
55 <h3>Derived from</h3> 66 <h3>Derived from</h3>
56 unittest.TestResult 67 unittest.TestResult
57 <h3>Class Attributes</h3> 68 <h3>Class Attributes</h3>
69
58 <table> 70 <table>
59 <tr><td>None</td></tr> 71 <tr><td>None</td></tr>
60 </table> 72 </table>
61 <h3>Class Methods</h3> 73 <h3>Class Methods</h3>
74
62 <table> 75 <table>
63 <tr><td>None</td></tr> 76 <tr><td>None</td></tr>
64 </table> 77 </table>
65 <h3>Methods</h3> 78 <h3>Methods</h3>
66 <table> 79
80 <table>
81
67 <tr> 82 <tr>
68 <td><a href="#QtTestResult.__init__">QtTestResult</a></td> 83 <td><a href="#QtTestResult.__init__">QtTestResult</a></td>
69 <td>Constructor</td> 84 <td>Constructor</td>
70 </tr><tr> 85 </tr>
86 <tr>
71 <td><a href="#QtTestResult.addError">addError</a></td> 87 <td><a href="#QtTestResult.addError">addError</a></td>
72 <td>Public method called if a test errored.</td> 88 <td>Public method called if a test errored.</td>
73 </tr><tr> 89 </tr>
90 <tr>
74 <td><a href="#QtTestResult.addExpectedFailure">addExpectedFailure</a></td> 91 <td><a href="#QtTestResult.addExpectedFailure">addExpectedFailure</a></td>
75 <td>Public method called if a test failed expected.</td> 92 <td>Public method called if a test failed expected.</td>
76 </tr><tr> 93 </tr>
94 <tr>
77 <td><a href="#QtTestResult.addFailure">addFailure</a></td> 95 <td><a href="#QtTestResult.addFailure">addFailure</a></td>
78 <td>Public method called if a test failed.</td> 96 <td>Public method called if a test failed.</td>
79 </tr><tr> 97 </tr>
98 <tr>
80 <td><a href="#QtTestResult.addSkip">addSkip</a></td> 99 <td><a href="#QtTestResult.addSkip">addSkip</a></td>
81 <td>Public method called if a test was skipped.</td> 100 <td>Public method called if a test was skipped.</td>
82 </tr><tr> 101 </tr>
102 <tr>
83 <td><a href="#QtTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td> 103 <td><a href="#QtTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td>
84 <td>Public method called if a test succeeded expectedly.</td> 104 <td>Public method called if a test succeeded expectedly.</td>
85 </tr><tr> 105 </tr>
106 <tr>
86 <td><a href="#QtTestResult.startTest">startTest</a></td> 107 <td><a href="#QtTestResult.startTest">startTest</a></td>
87 <td>Public method called at the start of a test.</td> 108 <td>Public method called at the start of a test.</td>
88 </tr><tr> 109 </tr>
110 <tr>
89 <td><a href="#QtTestResult.stopTest">stopTest</a></td> 111 <td><a href="#QtTestResult.stopTest">stopTest</a></td>
90 <td>Public method called at the end of a test.</td> 112 <td>Public method called at the end of a test.</td>
91 </tr> 113 </tr>
92 </table> 114 </table>
93 <h3>Static Methods</h3> 115 <h3>Static Methods</h3>
116
94 <table> 117 <table>
95 <tr><td>None</td></tr> 118 <tr><td>None</td></tr>
96 </table> 119 </table>
120
97 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a> 121 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a>
98 <h4>QtTestResult (Constructor)</h4> 122 <h4>QtTestResult (Constructor)</h4>
99 <b>QtTestResult</b>(<i>parent, failfast</i>) 123 <b>QtTestResult</b>(<i>parent, failfast</i>)
124
100 <p> 125 <p>
101 Constructor 126 Constructor
102 </p><dl> 127 </p>
128 <dl>
129
103 <dt><i>parent</i> (UnittestDialog)</dt> 130 <dt><i>parent</i> (UnittestDialog)</dt>
104 <dd> 131 <dd>
105 reference to the parent widget 132 reference to the parent widget
106 </dd><dt><i>failfast</i> (bool)</dt> 133 </dd>
134 <dt><i>failfast</i> (bool)</dt>
107 <dd> 135 <dd>
108 flag indicating to stop at the first error 136 flag indicating to stop at the first error
109 </dd> 137 </dd>
110 </dl><a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a> 138 </dl>
139 <a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a>
111 <h4>QtTestResult.addError</h4> 140 <h4>QtTestResult.addError</h4>
112 <b>addError</b>(<i>test, err</i>) 141 <b>addError</b>(<i>test, err</i>)
142
113 <p> 143 <p>
114 Public method called if a test errored. 144 Public method called if a test errored.
115 </p><dl> 145 </p>
146 <dl>
147
116 <dt><i>test</i></dt> 148 <dt><i>test</i></dt>
117 <dd> 149 <dd>
118 reference to the test object 150 reference to the test object
119 </dd><dt><i>err</i></dt> 151 </dd>
152 <dt><i>err</i></dt>
120 <dd> 153 <dd>
121 error traceback 154 error traceback
122 </dd> 155 </dd>
123 </dl><a NAME="QtTestResult.addExpectedFailure" ID="QtTestResult.addExpectedFailure"></a> 156 </dl>
157 <a NAME="QtTestResult.addExpectedFailure" ID="QtTestResult.addExpectedFailure"></a>
124 <h4>QtTestResult.addExpectedFailure</h4> 158 <h4>QtTestResult.addExpectedFailure</h4>
125 <b>addExpectedFailure</b>(<i>test, err</i>) 159 <b>addExpectedFailure</b>(<i>test, err</i>)
160
126 <p> 161 <p>
127 Public method called if a test failed expected. 162 Public method called if a test failed expected.
128 </p><dl> 163 </p>
164 <dl>
165
129 <dt><i>test</i></dt> 166 <dt><i>test</i></dt>
130 <dd> 167 <dd>
131 reference to the test object 168 reference to the test object
132 </dd><dt><i>err</i></dt> 169 </dd>
170 <dt><i>err</i></dt>
133 <dd> 171 <dd>
134 error traceback 172 error traceback
135 </dd> 173 </dd>
136 </dl><a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a> 174 </dl>
175 <a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a>
137 <h4>QtTestResult.addFailure</h4> 176 <h4>QtTestResult.addFailure</h4>
138 <b>addFailure</b>(<i>test, err</i>) 177 <b>addFailure</b>(<i>test, err</i>)
178
139 <p> 179 <p>
140 Public method called if a test failed. 180 Public method called if a test failed.
141 </p><dl> 181 </p>
182 <dl>
183
142 <dt><i>test</i></dt> 184 <dt><i>test</i></dt>
143 <dd> 185 <dd>
144 reference to the test object 186 reference to the test object
145 </dd><dt><i>err</i></dt> 187 </dd>
188 <dt><i>err</i></dt>
146 <dd> 189 <dd>
147 error traceback 190 error traceback
148 </dd> 191 </dd>
149 </dl><a NAME="QtTestResult.addSkip" ID="QtTestResult.addSkip"></a> 192 </dl>
193 <a NAME="QtTestResult.addSkip" ID="QtTestResult.addSkip"></a>
150 <h4>QtTestResult.addSkip</h4> 194 <h4>QtTestResult.addSkip</h4>
151 <b>addSkip</b>(<i>test, reason</i>) 195 <b>addSkip</b>(<i>test, reason</i>)
196
152 <p> 197 <p>
153 Public method called if a test was skipped. 198 Public method called if a test was skipped.
154 </p><dl> 199 </p>
200 <dl>
201
155 <dt><i>test</i></dt> 202 <dt><i>test</i></dt>
156 <dd> 203 <dd>
157 reference to the test object 204 reference to the test object
158 </dd><dt><i>reason</i></dt> 205 </dd>
206 <dt><i>reason</i></dt>
159 <dd> 207 <dd>
160 reason for skipping the test (string) 208 reason for skipping the test (string)
161 </dd> 209 </dd>
162 </dl><a NAME="QtTestResult.addUnexpectedSuccess" ID="QtTestResult.addUnexpectedSuccess"></a> 210 </dl>
211 <a NAME="QtTestResult.addUnexpectedSuccess" ID="QtTestResult.addUnexpectedSuccess"></a>
163 <h4>QtTestResult.addUnexpectedSuccess</h4> 212 <h4>QtTestResult.addUnexpectedSuccess</h4>
164 <b>addUnexpectedSuccess</b>(<i>test</i>) 213 <b>addUnexpectedSuccess</b>(<i>test</i>)
214
165 <p> 215 <p>
166 Public method called if a test succeeded expectedly. 216 Public method called if a test succeeded expectedly.
167 </p><dl> 217 </p>
218 <dl>
219
168 <dt><i>test</i></dt> 220 <dt><i>test</i></dt>
169 <dd> 221 <dd>
170 reference to the test object 222 reference to the test object
171 </dd> 223 </dd>
172 </dl><a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a> 224 </dl>
225 <a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a>
173 <h4>QtTestResult.startTest</h4> 226 <h4>QtTestResult.startTest</h4>
174 <b>startTest</b>(<i>test</i>) 227 <b>startTest</b>(<i>test</i>)
228
175 <p> 229 <p>
176 Public method called at the start of a test. 230 Public method called at the start of a test.
177 </p><dl> 231 </p>
232 <dl>
233
178 <dt><i>test</i></dt> 234 <dt><i>test</i></dt>
179 <dd> 235 <dd>
180 Reference to the test object 236 Reference to the test object
181 </dd> 237 </dd>
182 </dl><a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a> 238 </dl>
239 <a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a>
183 <h4>QtTestResult.stopTest</h4> 240 <h4>QtTestResult.stopTest</h4>
184 <b>stopTest</b>(<i>test</i>) 241 <b>stopTest</b>(<i>test</i>)
242
185 <p> 243 <p>
186 Public method called at the end of a test. 244 Public method called at the end of a test.
187 </p><dl> 245 </p>
246 <dl>
247
188 <dt><i>test</i></dt> 248 <dt><i>test</i></dt>
189 <dd> 249 <dd>
190 Reference to the test object 250 Reference to the test object
191 </dd> 251 </dd>
192 </dl> 252 </dl>
193 <div align="right"><a href="#top">Up</a></div> 253 <div align="right"><a href="#top">Up</a></div>
194 <hr /><hr /> 254 <hr />
255 <hr />
195 <a NAME="UnittestDialog" ID="UnittestDialog"></a> 256 <a NAME="UnittestDialog" ID="UnittestDialog"></a>
196 <h2>UnittestDialog</h2> 257 <h2>UnittestDialog</h2>
258
197 <p> 259 <p>
198 Class implementing the UI to the pyunit package. 260 Class implementing the UI to the pyunit package.
199 </p><h3>Signals</h3> 261 </p>
200 <dl> 262 <h3>Signals</h3>
263 <dl>
264
201 <dt>unittestFile(str, int, bool)</dt> 265 <dt>unittestFile(str, int, bool)</dt>
202 <dd> 266 <dd>
203 emitted to show the source of a 267 emitted to show the source of a
204 unittest file 268 unittest file
205 </dd><dt>unittestStopped()</dt> 269 </dd>
270 <dt>unittestStopped()</dt>
206 <dd> 271 <dd>
207 emitted after a unit test was run 272 emitted after a unit test was run
208 </dd> 273 </dd>
209 </dl> 274 </dl>
210 <h3>Derived from</h3> 275 <h3>Derived from</h3>
211 QWidget, Ui_UnittestDialog 276 QWidget, Ui_UnittestDialog
212 <h3>Class Attributes</h3> 277 <h3>Class Attributes</h3>
278
213 <table> 279 <table>
214 <tr><td>ErrorsInfoRole</td></tr><tr><td>TestCaseFileRole</td></tr><tr><td>TestCaseNameRole</td></tr> 280 <tr><td>ErrorsInfoRole</td></tr><tr><td>TestCaseFileRole</td></tr><tr><td>TestCaseNameRole</td></tr>
215 </table> 281 </table>
216 <h3>Class Methods</h3> 282 <h3>Class Methods</h3>
283
217 <table> 284 <table>
218 <tr><td>None</td></tr> 285 <tr><td>None</td></tr>
219 </table> 286 </table>
220 <h3>Methods</h3> 287 <h3>Methods</h3>
221 <table> 288
289 <table>
290
222 <tr> 291 <tr>
223 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td> 292 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td>
224 <td>Constructor</td> 293 <td>Constructor</td>
225 </tr><tr> 294 </tr>
295 <tr>
226 <td><a href="#UnittestDialog.__UTDiscovered">__UTDiscovered</a></td> 296 <td><a href="#UnittestDialog.__UTDiscovered">__UTDiscovered</a></td>
227 <td>Private slot to handle the utDiscovered signal.</td> 297 <td>Private slot to handle the utDiscovered signal.</td>
228 </tr><tr> 298 </tr>
299 <tr>
229 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td> 300 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td>
230 <td>Private slot to handle the utPrepared signal.</td> 301 <td>Private slot to handle the utPrepared signal.</td>
231 </tr><tr> 302 </tr>
303 <tr>
232 <td><a href="#UnittestDialog.__assembleTestCasesList">__assembleTestCasesList</a></td> 304 <td><a href="#UnittestDialog.__assembleTestCasesList">__assembleTestCasesList</a></td>
233 <td>Private method to assemble a list of test cases included in a test suite.</td> 305 <td>Private method to assemble a list of test cases included in a test suite.</td>
234 </tr><tr> 306 </tr>
307 <tr>
235 <td><a href="#UnittestDialog.__discover">__discover</a></td> 308 <td><a href="#UnittestDialog.__discover">__discover</a></td>
236 <td>Private slot to discover unit test but don't run them.</td> 309 <td>Private slot to discover unit test but don't run them.</td>
237 </tr><tr> 310 </tr>
311 <tr>
238 <td><a href="#UnittestDialog.__findDiscoveryItem">__findDiscoveryItem</a></td> 312 <td><a href="#UnittestDialog.__findDiscoveryItem">__findDiscoveryItem</a></td>
239 <td>Private method to find an item given the module path.</td> 313 <td>Private method to find an item given the module path.</td>
240 </tr><tr> 314 </tr>
315 <tr>
241 <td><a href="#UnittestDialog.__openEditor">__openEditor</a></td> 316 <td><a href="#UnittestDialog.__openEditor">__openEditor</a></td>
242 <td>Private method to open an editor window for the given file.</td> 317 <td>Private method to open an editor window for the given file.</td>
243 </tr><tr> 318 </tr>
319 <tr>
244 <td><a href="#UnittestDialog.__populateDiscoveryResults">__populateDiscoveryResults</a></td> 320 <td><a href="#UnittestDialog.__populateDiscoveryResults">__populateDiscoveryResults</a></td>
245 <td>Private method to populate the test discovery results list.</td> 321 <td>Private method to populate the test discovery results list.</td>
246 </tr><tr> 322 </tr>
323 <tr>
247 <td><a href="#UnittestDialog.__populateVenvComboBox">__populateVenvComboBox</a></td> 324 <td><a href="#UnittestDialog.__populateVenvComboBox">__populateVenvComboBox</a></td>
248 <td>Private method to (re-)populate the virtual environments selector.</td> 325 <td>Private method to (re-)populate the virtual environments selector.</td>
249 </tr><tr> 326 </tr>
327 <tr>
250 <td><a href="#UnittestDialog.__selectedTestCases">__selectedTestCases</a></td> 328 <td><a href="#UnittestDialog.__selectedTestCases">__selectedTestCases</a></td>
251 <td>Private method to assemble the list of selected test cases and suites.</td> 329 <td>Private method to assemble the list of selected test cases and suites.</td>
252 </tr><tr> 330 </tr>
331 <tr>
253 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td> 332 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td>
254 <td>Private methode to set the color of the progress color label.</td> 333 <td>Private methode to set the color of the progress color label.</td>
255 </tr><tr> 334 </tr>
335 <tr>
256 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td> 336 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td>
257 <td>Private method to set the GUI in running mode.</td> 337 <td>Private method to set the GUI in running mode.</td>
258 </tr><tr> 338 </tr>
339 <tr>
259 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td> 340 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td>
260 <td>Private method to set the GUI in stopped mode.</td> 341 <td>Private method to set the GUI in stopped mode.</td>
261 </tr><tr> 342 </tr>
343 <tr>
262 <td><a href="#UnittestDialog.__showSource">__showSource</a></td> 344 <td><a href="#UnittestDialog.__showSource">__showSource</a></td>
263 <td>Private slot to show the source of a traceback in an eric6 editor.</td> 345 <td>Private slot to show the source of a traceback in an eric6 editor.</td>
264 </tr><tr> 346 </tr>
347 <tr>
265 <td><a href="#UnittestDialog.__stopTests">__stopTests</a></td> 348 <td><a href="#UnittestDialog.__stopTests">__stopTests</a></td>
266 <td>Private slot to stop the test.</td> 349 <td>Private slot to stop the test.</td>
267 </tr><tr> 350 </tr>
351 <tr>
268 <td><a href="#UnittestDialog.closeEvent">closeEvent</a></td> 352 <td><a href="#UnittestDialog.closeEvent">closeEvent</a></td>
269 <td>Protected method to handle the close event.</td> 353 <td>Protected method to handle the close event.</td>
270 </tr><tr> 354 </tr>
355 <tr>
271 <td><a href="#UnittestDialog.hasFailedTests">hasFailedTests</a></td> 356 <td><a href="#UnittestDialog.hasFailedTests">hasFailedTests</a></td>
272 <td>Public method to check, if there are failed tests from the last run.</td> 357 <td>Public method to check, if there are failed tests from the last run.</td>
273 </tr><tr> 358 </tr>
359 <tr>
274 <td><a href="#UnittestDialog.insertDiscovery">insertDiscovery</a></td> 360 <td><a href="#UnittestDialog.insertDiscovery">insertDiscovery</a></td>
275 <td>Public slot to insert the discovery start directory into the discoveryPicker object.</td> 361 <td>Public slot to insert the discovery start directory into the discoveryPicker object.</td>
276 </tr><tr> 362 </tr>
363 <tr>
277 <td><a href="#UnittestDialog.insertProg">insertProg</a></td> 364 <td><a href="#UnittestDialog.insertProg">insertProg</a></td>
278 <td>Public slot to insert the filename prog into the testsuitePicker object.</td> 365 <td>Public slot to insert the filename prog into the testsuitePicker object.</td>
279 </tr><tr> 366 </tr>
367 <tr>
280 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td> 368 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td>
281 <td>Public slot to insert a test name into the testComboBox object.</td> 369 <td>Public slot to insert a test name into the testComboBox object.</td>
282 </tr><tr> 370 </tr>
371 <tr>
283 <td><a href="#UnittestDialog.keyPressEvent">keyPressEvent</a></td> 372 <td><a href="#UnittestDialog.keyPressEvent">keyPressEvent</a></td>
284 <td>Protected slot to handle key press events.</td> 373 <td>Protected slot to handle key press events.</td>
285 </tr><tr> 374 </tr>
375 <tr>
286 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> 376 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
287 <td>Private slot called by a button of the button box clicked.</td> 377 <td>Private slot called by a button of the button box clicked.</td>
288 </tr><tr> 378 </tr>
379 <tr>
289 <td><a href="#UnittestDialog.on_discoverCheckBox_toggled">on_discoverCheckBox_toggled</a></td> 380 <td><a href="#UnittestDialog.on_discoverCheckBox_toggled">on_discoverCheckBox_toggled</a></td>
290 <td>Private slot handling state changes of the 'discover' checkbox.</td> 381 <td>Private slot handling state changes of the 'discover' checkbox.</td>
291 </tr><tr> 382 </tr>
383 <tr>
292 <td><a href="#UnittestDialog.on_discoveryList_itemChanged">on_discoveryList_itemChanged</a></td> 384 <td><a href="#UnittestDialog.on_discoveryList_itemChanged">on_discoveryList_itemChanged</a></td>
293 <td>Private slot handling the user checking or unchecking an item.</td> 385 <td>Private slot handling the user checking or unchecking an item.</td>
294 </tr><tr> 386 </tr>
387 <tr>
295 <td><a href="#UnittestDialog.on_discoveryList_itemDoubleClicked">on_discoveryList_itemDoubleClicked</a></td> 388 <td><a href="#UnittestDialog.on_discoveryList_itemDoubleClicked">on_discoveryList_itemDoubleClicked</a></td>
296 <td>Private slot handling the user double clicking an item.</td> 389 <td>Private slot handling the user double clicking an item.</td>
297 </tr><tr> 390 </tr>
391 <tr>
298 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> 392 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td>
299 <td>Private slot to handle the highlighted signal.</td> 393 <td>Private slot to handle the highlighted signal.</td>
300 </tr><tr> 394 </tr>
395 <tr>
301 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> 396 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td>
302 <td>Private slot called by doubleclicking an errorlist entry.</td> 397 <td>Private slot called by doubleclicking an errorlist entry.</td>
303 </tr><tr> 398 </tr>
399 <tr>
304 <td><a href="#UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog">on_testsuitePicker_aboutToShowPathPickerDialog</a></td> 400 <td><a href="#UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog">on_testsuitePicker_aboutToShowPathPickerDialog</a></td>
305 <td>Private slot called before the test suite selection dialog is shown.</td> 401 <td>Private slot called before the test suite selection dialog is shown.</td>
306 </tr><tr> 402 </tr>
403 <tr>
307 <td><a href="#UnittestDialog.on_testsuitePicker_editTextChanged">on_testsuitePicker_editTextChanged</a></td> 404 <td><a href="#UnittestDialog.on_testsuitePicker_editTextChanged">on_testsuitePicker_editTextChanged</a></td>
308 <td>Private slot handling changes of the test suite path.</td> 405 <td>Private slot handling changes of the test suite path.</td>
309 </tr><tr> 406 </tr>
407 <tr>
310 <td><a href="#UnittestDialog.on_testsuitePicker_pathSelected">on_testsuitePicker_pathSelected</a></td> 408 <td><a href="#UnittestDialog.on_testsuitePicker_pathSelected">on_testsuitePicker_pathSelected</a></td>
311 <td>Private slot called after a test suite has been selected.</td> 409 <td>Private slot called after a test suite has been selected.</td>
312 </tr><tr> 410 </tr>
411 <tr>
313 <td><a href="#UnittestDialog.setProjectMode">setProjectMode</a></td> 412 <td><a href="#UnittestDialog.setProjectMode">setProjectMode</a></td>
314 <td>Public method to set the project mode of the dialog.</td> 413 <td>Public method to set the project mode of the dialog.</td>
315 </tr><tr> 414 </tr>
415 <tr>
316 <td><a href="#UnittestDialog.startTests">startTests</a></td> 416 <td><a href="#UnittestDialog.startTests">startTests</a></td>
317 <td>Public slot to start the test.</td> 417 <td>Public slot to start the test.</td>
318 </tr><tr> 418 </tr>
419 <tr>
319 <td><a href="#UnittestDialog.testErrored">testErrored</a></td> 420 <td><a href="#UnittestDialog.testErrored">testErrored</a></td>
320 <td>Public method called if a test errors.</td> 421 <td>Public method called if a test errors.</td>
321 </tr><tr> 422 </tr>
423 <tr>
322 <td><a href="#UnittestDialog.testFailed">testFailed</a></td> 424 <td><a href="#UnittestDialog.testFailed">testFailed</a></td>
323 <td>Public method called if a test fails.</td> 425 <td>Public method called if a test fails.</td>
324 </tr><tr> 426 </tr>
427 <tr>
325 <td><a href="#UnittestDialog.testFailedExpected">testFailedExpected</a></td> 428 <td><a href="#UnittestDialog.testFailedExpected">testFailedExpected</a></td>
326 <td>Public method called if a test fails expectedly.</td> 429 <td>Public method called if a test fails expectedly.</td>
327 </tr><tr> 430 </tr>
431 <tr>
328 <td><a href="#UnittestDialog.testFinished">testFinished</a></td> 432 <td><a href="#UnittestDialog.testFinished">testFinished</a></td>
329 <td>Public method called if a test has finished.</td> 433 <td>Public method called if a test has finished.</td>
330 </tr><tr> 434 </tr>
435 <tr>
331 <td><a href="#UnittestDialog.testSkipped">testSkipped</a></td> 436 <td><a href="#UnittestDialog.testSkipped">testSkipped</a></td>
332 <td>Public method called if a test was skipped.</td> 437 <td>Public method called if a test was skipped.</td>
333 </tr><tr> 438 </tr>
439 <tr>
334 <td><a href="#UnittestDialog.testStarted">testStarted</a></td> 440 <td><a href="#UnittestDialog.testStarted">testStarted</a></td>
335 <td>Public method called if a test is about to be run.</td> 441 <td>Public method called if a test is about to be run.</td>
336 </tr><tr> 442 </tr>
443 <tr>
337 <td><a href="#UnittestDialog.testSucceededUnexpected">testSucceededUnexpected</a></td> 444 <td><a href="#UnittestDialog.testSucceededUnexpected">testSucceededUnexpected</a></td>
338 <td>Public method called if a test succeeds unexpectedly.</td> 445 <td>Public method called if a test succeeds unexpectedly.</td>
339 </tr> 446 </tr>
340 </table> 447 </table>
341 <h3>Static Methods</h3> 448 <h3>Static Methods</h3>
449
342 <table> 450 <table>
343 <tr><td>None</td></tr> 451 <tr><td>None</td></tr>
344 </table> 452 </table>
453
345 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a> 454 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a>
346 <h4>UnittestDialog (Constructor)</h4> 455 <h4>UnittestDialog (Constructor)</h4>
347 <b>UnittestDialog</b>(<i>prog=None, dbs=None, ui=None, parent=None, name=None</i>) 456 <b>UnittestDialog</b>(<i>prog=None, dbs=None, ui=None, parent=None, name=None</i>)
457
348 <p> 458 <p>
349 Constructor 459 Constructor
350 </p><dl> 460 </p>
461 <dl>
462
351 <dt><i>prog</i> (str)</dt> 463 <dt><i>prog</i> (str)</dt>
352 <dd> 464 <dd>
353 filename of the program to open 465 filename of the program to open
354 </dd><dt><i>dbs</i> (DebugServer)</dt> 466 </dd>
467 <dt><i>dbs</i> (DebugServer)</dt>
355 <dd> 468 <dd>
356 reference to the debug server object. It is an indication 469 reference to the debug server object. It is an indication
357 whether we were called from within the eric6 IDE. 470 whether we were called from within the eric6 IDE.
358 </dd><dt><i>ui</i> (UserInterface)</dt> 471 </dd>
472 <dt><i>ui</i> (UserInterface)</dt>
359 <dd> 473 <dd>
360 reference to the UI object 474 reference to the UI object
361 </dd><dt><i>parent</i> (QWidget)</dt> 475 </dd>
476 <dt><i>parent</i> (QWidget)</dt>
362 <dd> 477 <dd>
363 parent widget of this dialog 478 parent widget of this dialog
364 </dd><dt><i>name</i> (str)</dt> 479 </dd>
480 <dt><i>name</i> (str)</dt>
365 <dd> 481 <dd>
366 name of this dialog 482 name of this dialog
367 </dd> 483 </dd>
368 </dl><a NAME="UnittestDialog.__UTDiscovered" ID="UnittestDialog.__UTDiscovered"></a> 484 </dl>
485 <a NAME="UnittestDialog.__UTDiscovered" ID="UnittestDialog.__UTDiscovered"></a>
369 <h4>UnittestDialog.__UTDiscovered</h4> 486 <h4>UnittestDialog.__UTDiscovered</h4>
370 <b>__UTDiscovered</b>(<i>testCases, exc_type, exc_value</i>) 487 <b>__UTDiscovered</b>(<i>testCases, exc_type, exc_value</i>)
488
371 <p> 489 <p>
372 Private slot to handle the utDiscovered signal. 490 Private slot to handle the utDiscovered signal.
373 </p><p> 491 </p>
492 <p>
374 If the unittest suite was loaded successfully, we ask the 493 If the unittest suite was loaded successfully, we ask the
375 client to run the test suite. 494 client to run the test suite.
376 </p><dl> 495 </p>
496 <dl>
497
377 <dt><i>testCases</i> (str)</dt> 498 <dt><i>testCases</i> (str)</dt>
378 <dd> 499 <dd>
379 list of detected test cases 500 list of detected test cases
380 </dd><dt><i>exc_type</i> (str)</dt> 501 </dd>
502 <dt><i>exc_type</i> (str)</dt>
381 <dd> 503 <dd>
382 exception type occured during discovery 504 exception type occured during discovery
383 </dd><dt><i>exc_value</i> (str)</dt> 505 </dd>
506 <dt><i>exc_value</i> (str)</dt>
384 <dd> 507 <dd>
385 value of exception occured during discovery 508 value of exception occured during discovery
386 </dd> 509 </dd>
387 </dl><a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a> 510 </dl>
511 <a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a>
388 <h4>UnittestDialog.__UTPrepared</h4> 512 <h4>UnittestDialog.__UTPrepared</h4>
389 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>) 513 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>)
514
390 <p> 515 <p>
391 Private slot to handle the utPrepared signal. 516 Private slot to handle the utPrepared signal.
392 </p><p> 517 </p>
518 <p>
393 If the unittest suite was loaded successfully, we ask the 519 If the unittest suite was loaded successfully, we ask the
394 client to run the test suite. 520 client to run the test suite.
395 </p><dl> 521 </p>
522 <dl>
523
396 <dt><i>nrTests</i></dt> 524 <dt><i>nrTests</i></dt>
397 <dd> 525 <dd>
398 number of tests contained in the test suite (integer) 526 number of tests contained in the test suite (integer)
399 </dd><dt><i>exc_type</i></dt> 527 </dd>
528 <dt><i>exc_type</i></dt>
400 <dd> 529 <dd>
401 type of exception occured during preparation (string) 530 type of exception occured during preparation (string)
402 </dd><dt><i>exc_value</i></dt> 531 </dd>
532 <dt><i>exc_value</i></dt>
403 <dd> 533 <dd>
404 value of exception occured during preparation (string) 534 value of exception occured during preparation (string)
405 </dd> 535 </dd>
406 </dl><a NAME="UnittestDialog.__assembleTestCasesList" ID="UnittestDialog.__assembleTestCasesList"></a> 536 </dl>
537 <a NAME="UnittestDialog.__assembleTestCasesList" ID="UnittestDialog.__assembleTestCasesList"></a>
407 <h4>UnittestDialog.__assembleTestCasesList</h4> 538 <h4>UnittestDialog.__assembleTestCasesList</h4>
408 <b>__assembleTestCasesList</b>(<i>suite, start</i>) 539 <b>__assembleTestCasesList</b>(<i>suite, start</i>)
540
409 <p> 541 <p>
410 Private method to assemble a list of test cases included in a test 542 Private method to assemble a list of test cases included in a test
411 suite. 543 suite.
412 </p><dl> 544 </p>
545 <dl>
546
413 <dt><i>suite</i> (unittest.TestSuite)</dt> 547 <dt><i>suite</i> (unittest.TestSuite)</dt>
414 <dd> 548 <dd>
415 test suite to be inspected 549 test suite to be inspected
416 </dd><dt><i>start</i> (str)</dt> 550 </dd>
551 <dt><i>start</i> (str)</dt>
417 <dd> 552 <dd>
418 name of directory discovery was started at 553 name of directory discovery was started at
419 </dd> 554 </dd>
420 </dl><dl> 555 </dl>
556 <dl>
421 <dt>Returns:</dt> 557 <dt>Returns:</dt>
422 <dd> 558 <dd>
423 list of tuples containing the test case ID, a short description 559 list of tuples containing the test case ID, a short description
424 and the path of the test file name 560 and the path of the test file name
425 </dd> 561 </dd>
426 </dl><dl> 562 </dl>
563 <dl>
427 <dt>Return Type:</dt> 564 <dt>Return Type:</dt>
428 <dd> 565 <dd>
429 list of tuples of (str, str, str) 566 list of tuples of (str, str, str)
430 </dd> 567 </dd>
431 </dl><a NAME="UnittestDialog.__discover" ID="UnittestDialog.__discover"></a> 568 </dl>
569 <a NAME="UnittestDialog.__discover" ID="UnittestDialog.__discover"></a>
432 <h4>UnittestDialog.__discover</h4> 570 <h4>UnittestDialog.__discover</h4>
433 <b>__discover</b>(<i></i>) 571 <b>__discover</b>(<i></i>)
572
434 <p> 573 <p>
435 Private slot to discover unit test but don't run them. 574 Private slot to discover unit test but don't run them.
436 </p><a NAME="UnittestDialog.__findDiscoveryItem" ID="UnittestDialog.__findDiscoveryItem"></a> 575 </p>
576 <a NAME="UnittestDialog.__findDiscoveryItem" ID="UnittestDialog.__findDiscoveryItem"></a>
437 <h4>UnittestDialog.__findDiscoveryItem</h4> 577 <h4>UnittestDialog.__findDiscoveryItem</h4>
438 <b>__findDiscoveryItem</b>(<i>modulePath</i>) 578 <b>__findDiscoveryItem</b>(<i>modulePath</i>)
579
439 <p> 580 <p>
440 Private method to find an item given the module path. 581 Private method to find an item given the module path.
441 </p><dl> 582 </p>
583 <dl>
584
442 <dt><i>modulePath</i> (str)</dt> 585 <dt><i>modulePath</i> (str)</dt>
443 <dd> 586 <dd>
444 path of the module in dotted notation 587 path of the module in dotted notation
445 </dd> 588 </dd>
446 </dl><dl> 589 </dl>
590 <dl>
447 <dt>Returns:</dt> 591 <dt>Returns:</dt>
448 <dd> 592 <dd>
449 reference to the item or None 593 reference to the item or None
450 </dd> 594 </dd>
451 </dl><dl> 595 </dl>
596 <dl>
452 <dt>Return Type:</dt> 597 <dt>Return Type:</dt>
453 <dd> 598 <dd>
454 QTreeWidgetItem or None 599 QTreeWidgetItem or None
455 </dd> 600 </dd>
456 </dl><a NAME="UnittestDialog.__openEditor" ID="UnittestDialog.__openEditor"></a> 601 </dl>
602 <a NAME="UnittestDialog.__openEditor" ID="UnittestDialog.__openEditor"></a>
457 <h4>UnittestDialog.__openEditor</h4> 603 <h4>UnittestDialog.__openEditor</h4>
458 <b>__openEditor</b>(<i>filename, linenumber</i>) 604 <b>__openEditor</b>(<i>filename, linenumber</i>)
605
459 <p> 606 <p>
460 Private method to open an editor window for the given file. 607 Private method to open an editor window for the given file.
461 </p><p> 608 </p>
609 <p>
462 Note: This method opens an editor window when the unittest dialog 610 Note: This method opens an editor window when the unittest dialog
463 is called as a standalone application. 611 is called as a standalone application.
464 </p><dl> 612 </p>
613 <dl>
614
465 <dt><i>filename</i> (str)</dt> 615 <dt><i>filename</i> (str)</dt>
466 <dd> 616 <dd>
467 path of the file to be opened 617 path of the file to be opened
468 </dd><dt><i>linenumber</i> (int)</dt> 618 </dd>
619 <dt><i>linenumber</i> (int)</dt>
469 <dd> 620 <dd>
470 line number to place the cursor at 621 line number to place the cursor at
471 </dd> 622 </dd>
472 </dl><a NAME="UnittestDialog.__populateDiscoveryResults" ID="UnittestDialog.__populateDiscoveryResults"></a> 623 </dl>
624 <a NAME="UnittestDialog.__populateDiscoveryResults" ID="UnittestDialog.__populateDiscoveryResults"></a>
473 <h4>UnittestDialog.__populateDiscoveryResults</h4> 625 <h4>UnittestDialog.__populateDiscoveryResults</h4>
474 <b>__populateDiscoveryResults</b>(<i>tests</i>) 626 <b>__populateDiscoveryResults</b>(<i>tests</i>)
627
475 <p> 628 <p>
476 Private method to populate the test discovery results list. 629 Private method to populate the test discovery results list.
477 </p><dl> 630 </p>
631 <dl>
632
478 <dt><i>tests</i> (list of tuples of (str, str, str))</dt> 633 <dt><i>tests</i> (list of tuples of (str, str, str))</dt>
479 <dd> 634 <dd>
480 list of tuples containing the discovery results 635 list of tuples containing the discovery results
481 </dd> 636 </dd>
482 </dl><a NAME="UnittestDialog.__populateVenvComboBox" ID="UnittestDialog.__populateVenvComboBox"></a> 637 </dl>
638 <a NAME="UnittestDialog.__populateVenvComboBox" ID="UnittestDialog.__populateVenvComboBox"></a>
483 <h4>UnittestDialog.__populateVenvComboBox</h4> 639 <h4>UnittestDialog.__populateVenvComboBox</h4>
484 <b>__populateVenvComboBox</b>(<i></i>) 640 <b>__populateVenvComboBox</b>(<i></i>)
641
485 <p> 642 <p>
486 Private method to (re-)populate the virtual environments selector. 643 Private method to (re-)populate the virtual environments selector.
487 </p><a NAME="UnittestDialog.__selectedTestCases" ID="UnittestDialog.__selectedTestCases"></a> 644 </p>
645 <a NAME="UnittestDialog.__selectedTestCases" ID="UnittestDialog.__selectedTestCases"></a>
488 <h4>UnittestDialog.__selectedTestCases</h4> 646 <h4>UnittestDialog.__selectedTestCases</h4>
489 <b>__selectedTestCases</b>(<i>parent=None</i>) 647 <b>__selectedTestCases</b>(<i>parent=None</i>)
648
490 <p> 649 <p>
491 Private method to assemble the list of selected test cases and suites. 650 Private method to assemble the list of selected test cases and suites.
492 </p><dl> 651 </p>
652 <dl>
653
493 <dt><i>parent</i> (QTreeWidgetItem)</dt> 654 <dt><i>parent</i> (QTreeWidgetItem)</dt>
494 <dd> 655 <dd>
495 reference to the parent item 656 reference to the parent item
496 </dd> 657 </dd>
497 </dl><dl> 658 </dl>
659 <dl>
498 <dt>Returns:</dt> 660 <dt>Returns:</dt>
499 <dd> 661 <dd>
500 list of selected test cases 662 list of selected test cases
501 </dd> 663 </dd>
502 </dl><dl> 664 </dl>
665 <dl>
503 <dt>Return Type:</dt> 666 <dt>Return Type:</dt>
504 <dd> 667 <dd>
505 list of str 668 list of str
506 </dd> 669 </dd>
507 </dl><a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a> 670 </dl>
671 <a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a>
508 <h4>UnittestDialog.__setProgressColor</h4> 672 <h4>UnittestDialog.__setProgressColor</h4>
509 <b>__setProgressColor</b>(<i>color</i>) 673 <b>__setProgressColor</b>(<i>color</i>)
674
510 <p> 675 <p>
511 Private methode to set the color of the progress color label. 676 Private methode to set the color of the progress color label.
512 </p><dl> 677 </p>
678 <dl>
679
513 <dt><i>color</i></dt> 680 <dt><i>color</i></dt>
514 <dd> 681 <dd>
515 colour to be shown (string) 682 colour to be shown (string)
516 </dd> 683 </dd>
517 </dl><a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a> 684 </dl>
685 <a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a>
518 <h4>UnittestDialog.__setRunningMode</h4> 686 <h4>UnittestDialog.__setRunningMode</h4>
519 <b>__setRunningMode</b>(<i></i>) 687 <b>__setRunningMode</b>(<i></i>)
688
520 <p> 689 <p>
521 Private method to set the GUI in running mode. 690 Private method to set the GUI in running mode.
522 </p><a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a> 691 </p>
692 <a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a>
523 <h4>UnittestDialog.__setStoppedMode</h4> 693 <h4>UnittestDialog.__setStoppedMode</h4>
524 <b>__setStoppedMode</b>(<i></i>) 694 <b>__setStoppedMode</b>(<i></i>)
695
525 <p> 696 <p>
526 Private method to set the GUI in stopped mode. 697 Private method to set the GUI in stopped mode.
527 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a> 698 </p>
699 <a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a>
528 <h4>UnittestDialog.__showSource</h4> 700 <h4>UnittestDialog.__showSource</h4>
529 <b>__showSource</b>(<i></i>) 701 <b>__showSource</b>(<i></i>)
702
530 <p> 703 <p>
531 Private slot to show the source of a traceback in an eric6 editor. 704 Private slot to show the source of a traceback in an eric6 editor.
532 </p><a NAME="UnittestDialog.__stopTests" ID="UnittestDialog.__stopTests"></a> 705 </p>
706 <a NAME="UnittestDialog.__stopTests" ID="UnittestDialog.__stopTests"></a>
533 <h4>UnittestDialog.__stopTests</h4> 707 <h4>UnittestDialog.__stopTests</h4>
534 <b>__stopTests</b>(<i></i>) 708 <b>__stopTests</b>(<i></i>)
709
535 <p> 710 <p>
536 Private slot to stop the test. 711 Private slot to stop the test.
537 </p><a NAME="UnittestDialog.closeEvent" ID="UnittestDialog.closeEvent"></a> 712 </p>
713 <a NAME="UnittestDialog.closeEvent" ID="UnittestDialog.closeEvent"></a>
538 <h4>UnittestDialog.closeEvent</h4> 714 <h4>UnittestDialog.closeEvent</h4>
539 <b>closeEvent</b>(<i>event</i>) 715 <b>closeEvent</b>(<i>event</i>)
716
540 <p> 717 <p>
541 Protected method to handle the close event. 718 Protected method to handle the close event.
542 </p><dl> 719 </p>
720 <dl>
721
543 <dt><i>event</i> (QCloseEvent)</dt> 722 <dt><i>event</i> (QCloseEvent)</dt>
544 <dd> 723 <dd>
545 close event 724 close event
546 </dd> 725 </dd>
547 </dl><a NAME="UnittestDialog.hasFailedTests" ID="UnittestDialog.hasFailedTests"></a> 726 </dl>
727 <a NAME="UnittestDialog.hasFailedTests" ID="UnittestDialog.hasFailedTests"></a>
548 <h4>UnittestDialog.hasFailedTests</h4> 728 <h4>UnittestDialog.hasFailedTests</h4>
549 <b>hasFailedTests</b>(<i></i>) 729 <b>hasFailedTests</b>(<i></i>)
730
550 <p> 731 <p>
551 Public method to check, if there are failed tests from the last run. 732 Public method to check, if there are failed tests from the last run.
552 </p><dl> 733 </p>
734 <dl>
553 <dt>Returns:</dt> 735 <dt>Returns:</dt>
554 <dd> 736 <dd>
555 flag indicating the presence of failed tests (boolean) 737 flag indicating the presence of failed tests (boolean)
556 </dd> 738 </dd>
557 </dl><a NAME="UnittestDialog.insertDiscovery" ID="UnittestDialog.insertDiscovery"></a> 739 </dl>
740 <a NAME="UnittestDialog.insertDiscovery" ID="UnittestDialog.insertDiscovery"></a>
558 <h4>UnittestDialog.insertDiscovery</h4> 741 <h4>UnittestDialog.insertDiscovery</h4>
559 <b>insertDiscovery</b>(<i>start</i>) 742 <b>insertDiscovery</b>(<i>start</i>)
743
560 <p> 744 <p>
561 Public slot to insert the discovery start directory into the 745 Public slot to insert the discovery start directory into the
562 discoveryPicker object. 746 discoveryPicker object.
563 </p><dl> 747 </p>
748 <dl>
749
564 <dt><i>start</i> (str)</dt> 750 <dt><i>start</i> (str)</dt>
565 <dd> 751 <dd>
566 start directory name to be inserted 752 start directory name to be inserted
567 </dd> 753 </dd>
568 </dl><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a> 754 </dl>
755 <a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a>
569 <h4>UnittestDialog.insertProg</h4> 756 <h4>UnittestDialog.insertProg</h4>
570 <b>insertProg</b>(<i>prog</i>) 757 <b>insertProg</b>(<i>prog</i>)
758
571 <p> 759 <p>
572 Public slot to insert the filename prog into the testsuitePicker 760 Public slot to insert the filename prog into the testsuitePicker
573 object. 761 object.
574 </p><dl> 762 </p>
763 <dl>
764
575 <dt><i>prog</i></dt> 765 <dt><i>prog</i></dt>
576 <dd> 766 <dd>
577 filename to be inserted (string) 767 filename to be inserted (string)
578 </dd> 768 </dd>
579 </dl><a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a> 769 </dl>
770 <a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a>
580 <h4>UnittestDialog.insertTestName</h4> 771 <h4>UnittestDialog.insertTestName</h4>
581 <b>insertTestName</b>(<i>testName</i>) 772 <b>insertTestName</b>(<i>testName</i>)
773
582 <p> 774 <p>
583 Public slot to insert a test name into the testComboBox object. 775 Public slot to insert a test name into the testComboBox object.
584 </p><dl> 776 </p>
777 <dl>
778
585 <dt><i>testName</i></dt> 779 <dt><i>testName</i></dt>
586 <dd> 780 <dd>
587 name of the test to be inserted (string) 781 name of the test to be inserted (string)
588 </dd> 782 </dd>
589 </dl><a NAME="UnittestDialog.keyPressEvent" ID="UnittestDialog.keyPressEvent"></a> 783 </dl>
784 <a NAME="UnittestDialog.keyPressEvent" ID="UnittestDialog.keyPressEvent"></a>
590 <h4>UnittestDialog.keyPressEvent</h4> 785 <h4>UnittestDialog.keyPressEvent</h4>
591 <b>keyPressEvent</b>(<i>evt</i>) 786 <b>keyPressEvent</b>(<i>evt</i>)
787
592 <p> 788 <p>
593 Protected slot to handle key press events. 789 Protected slot to handle key press events.
594 </p><dl> 790 </p>
791 <dl>
792
595 <dt><i>evt</i></dt> 793 <dt><i>evt</i></dt>
596 <dd> 794 <dd>
597 key press event to handle (QKeyEvent) 795 key press event to handle (QKeyEvent)
598 </dd> 796 </dd>
599 </dl><a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a> 797 </dl>
798 <a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a>
600 <h4>UnittestDialog.on_buttonBox_clicked</h4> 799 <h4>UnittestDialog.on_buttonBox_clicked</h4>
601 <b>on_buttonBox_clicked</b>(<i>button</i>) 800 <b>on_buttonBox_clicked</b>(<i>button</i>)
801
602 <p> 802 <p>
603 Private slot called by a button of the button box clicked. 803 Private slot called by a button of the button box clicked.
604 </p><dl> 804 </p>
805 <dl>
806
605 <dt><i>button</i></dt> 807 <dt><i>button</i></dt>
606 <dd> 808 <dd>
607 button that was clicked (QAbstractButton) 809 button that was clicked (QAbstractButton)
608 </dd> 810 </dd>
609 </dl><a NAME="UnittestDialog.on_discoverCheckBox_toggled" ID="UnittestDialog.on_discoverCheckBox_toggled"></a> 811 </dl>
812 <a NAME="UnittestDialog.on_discoverCheckBox_toggled" ID="UnittestDialog.on_discoverCheckBox_toggled"></a>
610 <h4>UnittestDialog.on_discoverCheckBox_toggled</h4> 813 <h4>UnittestDialog.on_discoverCheckBox_toggled</h4>
611 <b>on_discoverCheckBox_toggled</b>(<i>checked</i>) 814 <b>on_discoverCheckBox_toggled</b>(<i>checked</i>)
815
612 <p> 816 <p>
613 Private slot handling state changes of the 'discover' checkbox. 817 Private slot handling state changes of the 'discover' checkbox.
614 </p><dl> 818 </p>
819 <dl>
820
615 <dt><i>checked</i> (bool)</dt> 821 <dt><i>checked</i> (bool)</dt>
616 <dd> 822 <dd>
617 state of the checkbox 823 state of the checkbox
618 </dd> 824 </dd>
619 </dl><a NAME="UnittestDialog.on_discoveryList_itemChanged" ID="UnittestDialog.on_discoveryList_itemChanged"></a> 825 </dl>
826 <a NAME="UnittestDialog.on_discoveryList_itemChanged" ID="UnittestDialog.on_discoveryList_itemChanged"></a>
620 <h4>UnittestDialog.on_discoveryList_itemChanged</h4> 827 <h4>UnittestDialog.on_discoveryList_itemChanged</h4>
621 <b>on_discoveryList_itemChanged</b>(<i>item, column</i>) 828 <b>on_discoveryList_itemChanged</b>(<i>item, column</i>)
829
622 <p> 830 <p>
623 Private slot handling the user checking or unchecking an item. 831 Private slot handling the user checking or unchecking an item.
624 </p><dl> 832 </p>
833 <dl>
834
625 <dt><i>item</i> (QTreeWidgetItem)</dt> 835 <dt><i>item</i> (QTreeWidgetItem)</dt>
626 <dd> 836 <dd>
627 reference to the item 837 reference to the item
628 </dd><dt><i>column</i> (int)</dt> 838 </dd>
839 <dt><i>column</i> (int)</dt>
629 <dd> 840 <dd>
630 changed column 841 changed column
631 </dd> 842 </dd>
632 </dl><a NAME="UnittestDialog.on_discoveryList_itemDoubleClicked" ID="UnittestDialog.on_discoveryList_itemDoubleClicked"></a> 843 </dl>
844 <a NAME="UnittestDialog.on_discoveryList_itemDoubleClicked" ID="UnittestDialog.on_discoveryList_itemDoubleClicked"></a>
633 <h4>UnittestDialog.on_discoveryList_itemDoubleClicked</h4> 845 <h4>UnittestDialog.on_discoveryList_itemDoubleClicked</h4>
634 <b>on_discoveryList_itemDoubleClicked</b>(<i>item, column</i>) 846 <b>on_discoveryList_itemDoubleClicked</b>(<i>item, column</i>)
847
635 <p> 848 <p>
636 Private slot handling the user double clicking an item. 849 Private slot handling the user double clicking an item.
637 </p><dl> 850 </p>
851 <dl>
852
638 <dt><i>item</i> (QTreeWidgetItem)</dt> 853 <dt><i>item</i> (QTreeWidgetItem)</dt>
639 <dd> 854 <dd>
640 reference to the item 855 reference to the item
641 </dd><dt><i>column</i> (int)</dt> 856 </dd>
857 <dt><i>column</i> (int)</dt>
642 <dd> 858 <dd>
643 column of the double click 859 column of the double click
644 </dd> 860 </dd>
645 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> 861 </dl>
862 <a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a>
646 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> 863 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4>
647 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) 864 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>)
865
648 <p> 866 <p>
649 Private slot to handle the highlighted signal. 867 Private slot to handle the highlighted signal.
650 </p><dl> 868 </p>
869 <dl>
870
651 <dt><i>text</i></dt> 871 <dt><i>text</i></dt>
652 <dd> 872 <dd>
653 current text (string) 873 current text (string)
654 </dd> 874 </dd>
655 </dl><a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a> 875 </dl>
876 <a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a>
656 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4> 877 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4>
657 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>) 878 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>)
879
658 <p> 880 <p>
659 Private slot called by doubleclicking an errorlist entry. 881 Private slot called by doubleclicking an errorlist entry.
660 </p><p> 882 </p>
883 <p>
661 It will popup a dialog showing the stacktrace. 884 It will popup a dialog showing the stacktrace.
662 If called from eric, an additional button is displayed 885 If called from eric, an additional button is displayed
663 to show the python source in an eric source viewer (in 886 to show the python source in an eric source viewer (in
664 erics main window. 887 erics main window.
665 </p><dl> 888 </p>
889 <dl>
890
666 <dt><i>lbitem</i></dt> 891 <dt><i>lbitem</i></dt>
667 <dd> 892 <dd>
668 the listbox item that was double clicked 893 the listbox item that was double clicked
669 </dd> 894 </dd>
670 </dl><a NAME="UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog" ID="UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog"></a> 895 </dl>
896 <a NAME="UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog" ID="UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog"></a>
671 <h4>UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog</h4> 897 <h4>UnittestDialog.on_testsuitePicker_aboutToShowPathPickerDialog</h4>
672 <b>on_testsuitePicker_aboutToShowPathPickerDialog</b>(<i></i>) 898 <b>on_testsuitePicker_aboutToShowPathPickerDialog</b>(<i></i>)
899
673 <p> 900 <p>
674 Private slot called before the test suite selection dialog is shown. 901 Private slot called before the test suite selection dialog is shown.
675 </p><a NAME="UnittestDialog.on_testsuitePicker_editTextChanged" ID="UnittestDialog.on_testsuitePicker_editTextChanged"></a> 902 </p>
903 <a NAME="UnittestDialog.on_testsuitePicker_editTextChanged" ID="UnittestDialog.on_testsuitePicker_editTextChanged"></a>
676 <h4>UnittestDialog.on_testsuitePicker_editTextChanged</h4> 904 <h4>UnittestDialog.on_testsuitePicker_editTextChanged</h4>
677 <b>on_testsuitePicker_editTextChanged</b>(<i>path</i>) 905 <b>on_testsuitePicker_editTextChanged</b>(<i>path</i>)
906
678 <p> 907 <p>
679 Private slot handling changes of the test suite path. 908 Private slot handling changes of the test suite path.
680 </p><dl> 909 </p>
910 <dl>
911
681 <dt><i>path</i> (str)</dt> 912 <dt><i>path</i> (str)</dt>
682 <dd> 913 <dd>
683 path of the test suite file 914 path of the test suite file
684 </dd> 915 </dd>
685 </dl><a NAME="UnittestDialog.on_testsuitePicker_pathSelected" ID="UnittestDialog.on_testsuitePicker_pathSelected"></a> 916 </dl>
917 <a NAME="UnittestDialog.on_testsuitePicker_pathSelected" ID="UnittestDialog.on_testsuitePicker_pathSelected"></a>
686 <h4>UnittestDialog.on_testsuitePicker_pathSelected</h4> 918 <h4>UnittestDialog.on_testsuitePicker_pathSelected</h4>
687 <b>on_testsuitePicker_pathSelected</b>(<i>suite</i>) 919 <b>on_testsuitePicker_pathSelected</b>(<i>suite</i>)
920
688 <p> 921 <p>
689 Private slot called after a test suite has been selected. 922 Private slot called after a test suite has been selected.
690 </p><dl> 923 </p>
924 <dl>
925
691 <dt><i>suite</i> (str)</dt> 926 <dt><i>suite</i> (str)</dt>
692 <dd> 927 <dd>
693 file name of the test suite 928 file name of the test suite
694 </dd> 929 </dd>
695 </dl><a NAME="UnittestDialog.setProjectMode" ID="UnittestDialog.setProjectMode"></a> 930 </dl>
931 <a NAME="UnittestDialog.setProjectMode" ID="UnittestDialog.setProjectMode"></a>
696 <h4>UnittestDialog.setProjectMode</h4> 932 <h4>UnittestDialog.setProjectMode</h4>
697 <b>setProjectMode</b>(<i>forProject</i>) 933 <b>setProjectMode</b>(<i>forProject</i>)
934
698 <p> 935 <p>
699 Public method to set the project mode of the dialog. 936 Public method to set the project mode of the dialog.
700 </p><dl> 937 </p>
938 <dl>
939
701 <dt><i>forProject</i> (bool)</dt> 940 <dt><i>forProject</i> (bool)</dt>
702 <dd> 941 <dd>
703 flag indicating to run for the open project 942 flag indicating to run for the open project
704 </dd> 943 </dd>
705 </dl><a NAME="UnittestDialog.startTests" ID="UnittestDialog.startTests"></a> 944 </dl>
945 <a NAME="UnittestDialog.startTests" ID="UnittestDialog.startTests"></a>
706 <h4>UnittestDialog.startTests</h4> 946 <h4>UnittestDialog.startTests</h4>
707 <b>startTests</b>(<i>failedOnly=False</i>) 947 <b>startTests</b>(<i>failedOnly=False</i>)
948
708 <p> 949 <p>
709 Public slot to start the test. 950 Public slot to start the test.
710 </p><dl> 951 </p>
952 <dl>
953
711 <dt><i>failedOnly=</i></dt> 954 <dt><i>failedOnly=</i></dt>
712 <dd> 955 <dd>
713 flag indicating to run only failed tests (boolean) 956 flag indicating to run only failed tests (boolean)
714 </dd> 957 </dd>
715 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a> 958 </dl>
959 <a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a>
716 <h4>UnittestDialog.testErrored</h4> 960 <h4>UnittestDialog.testErrored</h4>
717 <b>testErrored</b>(<i>test, exc, testId</i>) 961 <b>testErrored</b>(<i>test, exc, testId</i>)
962
718 <p> 963 <p>
719 Public method called if a test errors. 964 Public method called if a test errors.
720 </p><dl> 965 </p>
966 <dl>
967
721 <dt><i>test</i></dt> 968 <dt><i>test</i></dt>
722 <dd> 969 <dd>
723 name of the test (string) 970 name of the test (string)
724 </dd><dt><i>exc</i></dt> 971 </dd>
972 <dt><i>exc</i></dt>
725 <dd> 973 <dd>
726 string representation of the exception (string) 974 string representation of the exception (string)
727 </dd><dt><i>testId</i></dt> 975 </dd>
976 <dt><i>testId</i></dt>
728 <dd> 977 <dd>
729 id of the test (string) 978 id of the test (string)
730 </dd> 979 </dd>
731 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a> 980 </dl>
981 <a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a>
732 <h4>UnittestDialog.testFailed</h4> 982 <h4>UnittestDialog.testFailed</h4>
733 <b>testFailed</b>(<i>test, exc, testId</i>) 983 <b>testFailed</b>(<i>test, exc, testId</i>)
984
734 <p> 985 <p>
735 Public method called if a test fails. 986 Public method called if a test fails.
736 </p><dl> 987 </p>
988 <dl>
989
737 <dt><i>test</i></dt> 990 <dt><i>test</i></dt>
738 <dd> 991 <dd>
739 name of the test (string) 992 name of the test (string)
740 </dd><dt><i>exc</i></dt> 993 </dd>
994 <dt><i>exc</i></dt>
741 <dd> 995 <dd>
742 string representation of the exception (string) 996 string representation of the exception (string)
743 </dd><dt><i>testId</i></dt> 997 </dd>
998 <dt><i>testId</i></dt>
744 <dd> 999 <dd>
745 id of the test (string) 1000 id of the test (string)
746 </dd> 1001 </dd>
747 </dl><a NAME="UnittestDialog.testFailedExpected" ID="UnittestDialog.testFailedExpected"></a> 1002 </dl>
1003 <a NAME="UnittestDialog.testFailedExpected" ID="UnittestDialog.testFailedExpected"></a>
748 <h4>UnittestDialog.testFailedExpected</h4> 1004 <h4>UnittestDialog.testFailedExpected</h4>
749 <b>testFailedExpected</b>(<i>test, exc, testId</i>) 1005 <b>testFailedExpected</b>(<i>test, exc, testId</i>)
1006
750 <p> 1007 <p>
751 Public method called if a test fails expectedly. 1008 Public method called if a test fails expectedly.
752 </p><dl> 1009 </p>
1010 <dl>
1011
753 <dt><i>test</i></dt> 1012 <dt><i>test</i></dt>
754 <dd> 1013 <dd>
755 name of the test (string) 1014 name of the test (string)
756 </dd><dt><i>exc</i></dt> 1015 </dd>
1016 <dt><i>exc</i></dt>
757 <dd> 1017 <dd>
758 string representation of the exception (string) 1018 string representation of the exception (string)
759 </dd><dt><i>testId</i></dt> 1019 </dd>
1020 <dt><i>testId</i></dt>
760 <dd> 1021 <dd>
761 id of the test (string) 1022 id of the test (string)
762 </dd> 1023 </dd>
763 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a> 1024 </dl>
1025 <a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a>
764 <h4>UnittestDialog.testFinished</h4> 1026 <h4>UnittestDialog.testFinished</h4>
765 <b>testFinished</b>(<i></i>) 1027 <b>testFinished</b>(<i></i>)
1028
766 <p> 1029 <p>
767 Public method called if a test has finished. 1030 Public method called if a test has finished.
768 </p><p> 1031 </p>
1032 <p>
769 <b>Note</b>: It is also called if it has already failed or errored. 1033 <b>Note</b>: It is also called if it has already failed or errored.
770 </p><a NAME="UnittestDialog.testSkipped" ID="UnittestDialog.testSkipped"></a> 1034 </p>
1035 <a NAME="UnittestDialog.testSkipped" ID="UnittestDialog.testSkipped"></a>
771 <h4>UnittestDialog.testSkipped</h4> 1036 <h4>UnittestDialog.testSkipped</h4>
772 <b>testSkipped</b>(<i>test, reason, testId</i>) 1037 <b>testSkipped</b>(<i>test, reason, testId</i>)
1038
773 <p> 1039 <p>
774 Public method called if a test was skipped. 1040 Public method called if a test was skipped.
775 </p><dl> 1041 </p>
1042 <dl>
1043
776 <dt><i>test</i></dt> 1044 <dt><i>test</i></dt>
777 <dd> 1045 <dd>
778 name of the test (string) 1046 name of the test (string)
779 </dd><dt><i>reason</i></dt> 1047 </dd>
1048 <dt><i>reason</i></dt>
780 <dd> 1049 <dd>
781 reason for skipping the test (string) 1050 reason for skipping the test (string)
782 </dd><dt><i>testId</i></dt> 1051 </dd>
1052 <dt><i>testId</i></dt>
783 <dd> 1053 <dd>
784 id of the test (string) 1054 id of the test (string)
785 </dd> 1055 </dd>
786 </dl><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a> 1056 </dl>
1057 <a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a>
787 <h4>UnittestDialog.testStarted</h4> 1058 <h4>UnittestDialog.testStarted</h4>
788 <b>testStarted</b>(<i>test, doc</i>) 1059 <b>testStarted</b>(<i>test, doc</i>)
1060
789 <p> 1061 <p>
790 Public method called if a test is about to be run. 1062 Public method called if a test is about to be run.
791 </p><dl> 1063 </p>
1064 <dl>
1065
792 <dt><i>test</i></dt> 1066 <dt><i>test</i></dt>
793 <dd> 1067 <dd>
794 name of the started test (string) 1068 name of the started test (string)
795 </dd><dt><i>doc</i></dt> 1069 </dd>
1070 <dt><i>doc</i></dt>
796 <dd> 1071 <dd>
797 documentation of the started test (string) 1072 documentation of the started test (string)
798 </dd> 1073 </dd>
799 </dl><a NAME="UnittestDialog.testSucceededUnexpected" ID="UnittestDialog.testSucceededUnexpected"></a> 1074 </dl>
1075 <a NAME="UnittestDialog.testSucceededUnexpected" ID="UnittestDialog.testSucceededUnexpected"></a>
800 <h4>UnittestDialog.testSucceededUnexpected</h4> 1076 <h4>UnittestDialog.testSucceededUnexpected</h4>
801 <b>testSucceededUnexpected</b>(<i>test, testId</i>) 1077 <b>testSucceededUnexpected</b>(<i>test, testId</i>)
1078
802 <p> 1079 <p>
803 Public method called if a test succeeds unexpectedly. 1080 Public method called if a test succeeds unexpectedly.
804 </p><dl> 1081 </p>
1082 <dl>
1083
805 <dt><i>test</i></dt> 1084 <dt><i>test</i></dt>
806 <dd> 1085 <dd>
807 name of the test (string) 1086 name of the test (string)
808 </dd><dt><i>testId</i></dt> 1087 </dd>
1088 <dt><i>testId</i></dt>
809 <dd> 1089 <dd>
810 id of the test (string) 1090 id of the test (string)
811 </dd> 1091 </dd>
812 </dl> 1092 </dl>
813 <div align="right"><a href="#top">Up</a></div> 1093 <div align="right"><a href="#top">Up</a></div>
814 <hr /><hr /> 1094 <hr />
1095 <hr />
815 <a NAME="UnittestWindow" ID="UnittestWindow"></a> 1096 <a NAME="UnittestWindow" ID="UnittestWindow"></a>
816 <h2>UnittestWindow</h2> 1097 <h2>UnittestWindow</h2>
1098
817 <p> 1099 <p>
818 Main window class for the standalone dialog. 1100 Main window class for the standalone dialog.
819 </p> 1101 </p>
820 <h3>Derived from</h3> 1102 <h3>Derived from</h3>
821 E5MainWindow 1103 E5MainWindow
822 <h3>Class Attributes</h3> 1104 <h3>Class Attributes</h3>
1105
823 <table> 1106 <table>
824 <tr><td>None</td></tr> 1107 <tr><td>None</td></tr>
825 </table> 1108 </table>
826 <h3>Class Methods</h3> 1109 <h3>Class Methods</h3>
1110
827 <table> 1111 <table>
828 <tr><td>None</td></tr> 1112 <tr><td>None</td></tr>
829 </table> 1113 </table>
830 <h3>Methods</h3> 1114 <h3>Methods</h3>
831 <table> 1115
1116 <table>
1117
832 <tr> 1118 <tr>
833 <td><a href="#UnittestWindow.__init__">UnittestWindow</a></td> 1119 <td><a href="#UnittestWindow.__init__">UnittestWindow</a></td>
834 <td>Constructor</td> 1120 <td>Constructor</td>
835 </tr><tr> 1121 </tr>
1122 <tr>
836 <td><a href="#UnittestWindow.eventFilter">eventFilter</a></td> 1123 <td><a href="#UnittestWindow.eventFilter">eventFilter</a></td>
837 <td>Public method to filter events.</td> 1124 <td>Public method to filter events.</td>
838 </tr> 1125 </tr>
839 </table> 1126 </table>
840 <h3>Static Methods</h3> 1127 <h3>Static Methods</h3>
1128
841 <table> 1129 <table>
842 <tr><td>None</td></tr> 1130 <tr><td>None</td></tr>
843 </table> 1131 </table>
1132
844 <a NAME="UnittestWindow.__init__" ID="UnittestWindow.__init__"></a> 1133 <a NAME="UnittestWindow.__init__" ID="UnittestWindow.__init__"></a>
845 <h4>UnittestWindow (Constructor)</h4> 1134 <h4>UnittestWindow (Constructor)</h4>
846 <b>UnittestWindow</b>(<i>prog=None, parent=None</i>) 1135 <b>UnittestWindow</b>(<i>prog=None, parent=None</i>)
1136
847 <p> 1137 <p>
848 Constructor 1138 Constructor
849 </p><dl> 1139 </p>
1140 <dl>
1141
850 <dt><i>prog</i></dt> 1142 <dt><i>prog</i></dt>
851 <dd> 1143 <dd>
852 filename of the program to open 1144 filename of the program to open
853 </dd><dt><i>parent</i></dt> 1145 </dd>
1146 <dt><i>parent</i></dt>
854 <dd> 1147 <dd>
855 reference to the parent widget (QWidget) 1148 reference to the parent widget (QWidget)
856 </dd> 1149 </dd>
857 </dl><a NAME="UnittestWindow.eventFilter" ID="UnittestWindow.eventFilter"></a> 1150 </dl>
1151 <a NAME="UnittestWindow.eventFilter" ID="UnittestWindow.eventFilter"></a>
858 <h4>UnittestWindow.eventFilter</h4> 1152 <h4>UnittestWindow.eventFilter</h4>
859 <b>eventFilter</b>(<i>obj, event</i>) 1153 <b>eventFilter</b>(<i>obj, event</i>)
1154
860 <p> 1155 <p>
861 Public method to filter events. 1156 Public method to filter events.
862 </p><dl> 1157 </p>
1158 <dl>
1159
863 <dt><i>obj</i></dt> 1160 <dt><i>obj</i></dt>
864 <dd> 1161 <dd>
865 reference to the object the event is meant for (QObject) 1162 reference to the object the event is meant for (QObject)
866 </dd><dt><i>event</i></dt> 1163 </dd>
1164 <dt><i>event</i></dt>
867 <dd> 1165 <dd>
868 reference to the event object (QEvent) 1166 reference to the event object (QEvent)
869 </dd> 1167 </dd>
870 </dl><dl> 1168 </dl>
1169 <dl>
871 <dt>Returns:</dt> 1170 <dt>Returns:</dt>
872 <dd> 1171 <dd>
873 flag indicating, whether the event was handled (boolean) 1172 flag indicating, whether the event was handled (boolean)
874 </dd> 1173 </dd>
875 </dl> 1174 </dl>

eric ide

mercurial