61 </table> |
61 </table> |
62 <h3>Methods</h3> |
62 <h3>Methods</h3> |
63 <table> |
63 <table> |
64 <tr> |
64 <tr> |
65 <td><a href="#QtTestResult.__init__">QtTestResult</a></td> |
65 <td><a href="#QtTestResult.__init__">QtTestResult</a></td> |
66 <td>Constructor</td> |
66 <td>Constructor</td> |
67 </tr><tr> |
67 </tr><tr> |
68 <td><a href="#QtTestResult.addError">addError</a></td> |
68 <td><a href="#QtTestResult.addError">addError</a></td> |
69 <td>Method called if a test errored.</td> |
69 <td>Method called if a test errored.</td> |
70 </tr><tr> |
70 </tr><tr> |
71 <td><a href="#QtTestResult.addFailure">addFailure</a></td> |
71 <td><a href="#QtTestResult.addFailure">addFailure</a></td> |
72 <td>Method called if a test failed.</td> |
72 <td>Method called if a test failed.</td> |
73 </tr><tr> |
73 </tr><tr> |
74 <td><a href="#QtTestResult.startTest">startTest</a></td> |
74 <td><a href="#QtTestResult.startTest">startTest</a></td> |
75 <td>Method called at the start of a test.</td> |
75 <td>Method called at the start of a test.</td> |
76 </tr><tr> |
76 </tr><tr> |
77 <td><a href="#QtTestResult.stopTest">stopTest</a></td> |
77 <td><a href="#QtTestResult.stopTest">stopTest</a></td> |
78 <td>Method called at the end of a test.</td> |
78 <td>Method called at the end of a test.</td> |
79 </tr> |
79 </tr> |
80 </table> |
80 </table> |
81 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a> |
81 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a> |
82 <h4>QtTestResult (Constructor)</h4> |
82 <h4>QtTestResult (Constructor)</h4> |
83 <b>QtTestResult</b>(<i>parent</i>) |
83 <b>QtTestResult</b>(<i>parent</i>) |
84 <p> |
84 <p> |
85 Constructor |
85 Constructor |
86 </p><dl> |
86 </p><dl> |
87 <dt><i>parent</i></dt> |
87 <dt><i>parent</i></dt> |
88 <dd> |
88 <dd> |
89 The parent widget. |
89 The parent widget. |
90 </dd> |
90 </dd> |
91 </dl><a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a> |
91 </dl><a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a> |
92 <h4>QtTestResult.addError</h4> |
92 <h4>QtTestResult.addError</h4> |
93 <b>addError</b>(<i>test, err</i>) |
93 <b>addError</b>(<i>test, err</i>) |
94 <p> |
94 <p> |
95 Method called if a test errored. |
95 Method called if a test errored. |
96 </p><dl> |
96 </p><dl> |
97 <dt><i>test</i></dt> |
97 <dt><i>test</i></dt> |
98 <dd> |
98 <dd> |
99 Reference to the test object |
99 Reference to the test object |
100 </dd><dt><i>err</i></dt> |
100 </dd><dt><i>err</i></dt> |
101 <dd> |
101 <dd> |
102 The error traceback |
102 The error traceback |
103 </dd> |
103 </dd> |
104 </dl><a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a> |
104 </dl><a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a> |
105 <h4>QtTestResult.addFailure</h4> |
105 <h4>QtTestResult.addFailure</h4> |
106 <b>addFailure</b>(<i>test, err</i>) |
106 <b>addFailure</b>(<i>test, err</i>) |
107 <p> |
107 <p> |
108 Method called if a test failed. |
108 Method called if a test failed. |
109 </p><dl> |
109 </p><dl> |
110 <dt><i>test</i></dt> |
110 <dt><i>test</i></dt> |
111 <dd> |
111 <dd> |
112 Reference to the test object |
112 Reference to the test object |
113 </dd><dt><i>err</i></dt> |
113 </dd><dt><i>err</i></dt> |
114 <dd> |
114 <dd> |
115 The error traceback |
115 The error traceback |
116 </dd> |
116 </dd> |
117 </dl><a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a> |
117 </dl><a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a> |
118 <h4>QtTestResult.startTest</h4> |
118 <h4>QtTestResult.startTest</h4> |
119 <b>startTest</b>(<i>test</i>) |
119 <b>startTest</b>(<i>test</i>) |
120 <p> |
120 <p> |
121 Method called at the start of a test. |
121 Method called at the start of a test. |
122 </p><dl> |
122 </p><dl> |
123 <dt><i>test</i></dt> |
123 <dt><i>test</i></dt> |
124 <dd> |
124 <dd> |
125 Reference to the test object |
125 Reference to the test object |
126 </dd> |
126 </dd> |
127 </dl><a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a> |
127 </dl><a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a> |
128 <h4>QtTestResult.stopTest</h4> |
128 <h4>QtTestResult.stopTest</h4> |
129 <b>stopTest</b>(<i>test</i>) |
129 <b>stopTest</b>(<i>test</i>) |
130 <p> |
130 <p> |
131 Method called at the end of a test. |
131 Method called at the end of a test. |
132 </p><dl> |
132 </p><dl> |
133 <dt><i>test</i></dt> |
133 <dt><i>test</i></dt> |
134 <dd> |
134 <dd> |
135 Reference to the test object |
135 Reference to the test object |
136 </dd> |
136 </dd> |
137 </dl> |
137 </dl> |
138 <div align="right"><a href="#top">Up</a></div> |
138 <div align="right"><a href="#top">Up</a></div> |
139 <hr /><hr /> |
139 <hr /><hr /> |
140 <a NAME="UnittestDialog" ID="UnittestDialog"></a> |
140 <a NAME="UnittestDialog" ID="UnittestDialog"></a> |
141 <h2>UnittestDialog</h2> |
141 <h2>UnittestDialog</h2> |
142 <p> |
142 <p> |
143 Class implementing the UI to the pyunit package. |
143 Class implementing the UI to the pyunit package. |
144 </p><h4>Signals</h4> |
144 </p><h4>Signals</h4> |
145 <dl> |
145 <dl> |
146 <dt>unittestFile(string,int,int)</dt> |
146 <dt>unittestFile(string,int,int)</dt> |
147 <dd> |
147 <dd> |
148 emitted to show the source of a unittest file |
148 emitted to show the source of a unittest file |
149 </dd> |
149 </dd> |
150 </dl> |
150 </dl> |
151 <h3>Derived from</h3> |
151 <h3>Derived from</h3> |
152 QWidget, Ui_UnittestDialog |
152 QWidget, Ui_UnittestDialog |
153 <h3>Class Attributes</h3> |
153 <h3>Class Attributes</h3> |
156 </table> |
156 </table> |
157 <h3>Methods</h3> |
157 <h3>Methods</h3> |
158 <table> |
158 <table> |
159 <tr> |
159 <tr> |
160 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td> |
160 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td> |
161 <td>Constructor</td> |
161 <td>Constructor</td> |
162 </tr><tr> |
162 </tr><tr> |
163 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td> |
163 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td> |
164 <td>Private slot to handle the utPrepared signal.</td> |
164 <td>Private slot to handle the utPrepared signal.</td> |
165 </tr><tr> |
165 </tr><tr> |
166 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td> |
166 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td> |
167 <td>Private methode to set the color of the progress color label.</td> |
167 <td>Private methode to set the color of the progress color label.</td> |
168 </tr><tr> |
168 </tr><tr> |
169 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td> |
169 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td> |
170 <td>Private method to set the GUI in running mode.</td> |
170 <td>Private method to set the GUI in running mode.</td> |
171 </tr><tr> |
171 </tr><tr> |
172 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td> |
172 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td> |
173 <td>Private method to set the GUI in stopped mode.</td> |
173 <td>Private method to set the GUI in stopped mode.</td> |
174 </tr><tr> |
174 </tr><tr> |
175 <td><a href="#UnittestDialog.__showSource">__showSource</a></td> |
175 <td><a href="#UnittestDialog.__showSource">__showSource</a></td> |
176 <td>Private slot to show the source of a traceback in an eric5 editor.</td> |
176 <td>Private slot to show the source of a traceback in an eric5 editor.</td> |
177 </tr><tr> |
177 </tr><tr> |
178 <td><a href="#UnittestDialog.insertProg">insertProg</a></td> |
178 <td><a href="#UnittestDialog.insertProg">insertProg</a></td> |
179 <td>Public slot to insert the filename prog into the testsuiteComboBox object.</td> |
179 <td>Public slot to insert the filename prog into the testsuiteComboBox object.</td> |
180 </tr><tr> |
180 </tr><tr> |
181 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td> |
181 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td> |
182 <td>Public slot to insert a test name into the testComboBox object.</td> |
182 <td>Public slot to insert a test name into the testComboBox object.</td> |
183 </tr><tr> |
183 </tr><tr> |
184 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
184 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
185 <td>Private slot called by a button of the button box clicked.</td> |
185 <td>Private slot called by a button of the button box clicked.</td> |
186 </tr><tr> |
186 </tr><tr> |
187 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> |
187 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> |
188 <td>Private slot to handle the highlighted signal.</td> |
188 <td>Private slot to handle the highlighted signal.</td> |
189 </tr><tr> |
189 </tr><tr> |
190 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> |
190 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> |
191 <td>Private slot called by doubleclicking an errorlist entry.</td> |
191 <td>Private slot called by doubleclicking an errorlist entry.</td> |
192 </tr><tr> |
192 </tr><tr> |
193 <td><a href="#UnittestDialog.on_fileDialogButton_clicked">on_fileDialogButton_clicked</a></td> |
193 <td><a href="#UnittestDialog.on_fileDialogButton_clicked">on_fileDialogButton_clicked</a></td> |
194 <td>Private slot to open a file dialog.</td> |
194 <td>Private slot to open a file dialog.</td> |
195 </tr><tr> |
195 </tr><tr> |
196 <td><a href="#UnittestDialog.on_startButton_clicked">on_startButton_clicked</a></td> |
196 <td><a href="#UnittestDialog.on_startButton_clicked">on_startButton_clicked</a></td> |
197 <td>Public slot to start the test.</td> |
197 <td>Public slot to start the test.</td> |
198 </tr><tr> |
198 </tr><tr> |
199 <td><a href="#UnittestDialog.on_stopButton_clicked">on_stopButton_clicked</a></td> |
199 <td><a href="#UnittestDialog.on_stopButton_clicked">on_stopButton_clicked</a></td> |
200 <td>Private slot to stop the test.</td> |
200 <td>Private slot to stop the test.</td> |
201 </tr><tr> |
201 </tr><tr> |
202 <td><a href="#UnittestDialog.on_testsuiteComboBox_editTextChanged">on_testsuiteComboBox_editTextChanged</a></td> |
202 <td><a href="#UnittestDialog.on_testsuiteComboBox_editTextChanged">on_testsuiteComboBox_editTextChanged</a></td> |
203 <td>Private slot to handle changes of the test file name.</td> |
203 <td>Private slot to handle changes of the test file name.</td> |
204 </tr><tr> |
204 </tr><tr> |
205 <td><a href="#UnittestDialog.testErrored">testErrored</a></td> |
205 <td><a href="#UnittestDialog.testErrored">testErrored</a></td> |
206 <td>Public method called if a test errors.</td> |
206 <td>Public method called if a test errors.</td> |
207 </tr><tr> |
207 </tr><tr> |
208 <td><a href="#UnittestDialog.testFailed">testFailed</a></td> |
208 <td><a href="#UnittestDialog.testFailed">testFailed</a></td> |
209 <td>Public method called if a test fails.</td> |
209 <td>Public method called if a test fails.</td> |
210 </tr><tr> |
210 </tr><tr> |
211 <td><a href="#UnittestDialog.testFinished">testFinished</a></td> |
211 <td><a href="#UnittestDialog.testFinished">testFinished</a></td> |
212 <td>Public method called if a test has finished.</td> |
212 <td>Public method called if a test has finished.</td> |
213 </tr><tr> |
213 </tr><tr> |
214 <td><a href="#UnittestDialog.testStarted">testStarted</a></td> |
214 <td><a href="#UnittestDialog.testStarted">testStarted</a></td> |
215 <td>Public method called if a test is about to be run.</td> |
215 <td>Public method called if a test is about to be run.</td> |
216 </tr> |
216 </tr> |
217 </table> |
217 </table> |
218 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a> |
218 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a> |
219 <h4>UnittestDialog (Constructor)</h4> |
219 <h4>UnittestDialog (Constructor)</h4> |
220 <b>UnittestDialog</b>(<i>prog = None, dbs = None, ui = None, parent = None, name = None</i>) |
220 <b>UnittestDialog</b>(<i>prog = None, dbs = None, ui = None, parent = None, name = None</i>) |
221 <p> |
221 <p> |
222 Constructor |
222 Constructor |
223 </p><dl> |
223 </p><dl> |
224 <dt><i>prog</i></dt> |
224 <dt><i>prog</i></dt> |
225 <dd> |
225 <dd> |
226 filename of the program to open |
226 filename of the program to open |
227 </dd><dt><i>dbs</i></dt> |
227 </dd><dt><i>dbs</i></dt> |
228 <dd> |
228 <dd> |
229 reference to the debug server object. It is an indication |
229 reference to the debug server object. It is an indication |
230 whether we were called from within the eric5 IDE |
230 whether we were called from within the eric5 IDE |
231 </dd><dt><i>ui</i></dt> |
231 </dd><dt><i>ui</i></dt> |
232 <dd> |
232 <dd> |
233 reference to the UI object |
233 reference to the UI object |
234 </dd><dt><i>parent</i></dt> |
234 </dd><dt><i>parent</i></dt> |
235 <dd> |
235 <dd> |
236 parent widget of this dialog (QWidget) |
236 parent widget of this dialog (QWidget) |
237 </dd><dt><i>name</i></dt> |
237 </dd><dt><i>name</i></dt> |
238 <dd> |
238 <dd> |
239 name of this dialog (string) |
239 name of this dialog (string) |
240 </dd> |
240 </dd> |
241 </dl><a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a> |
241 </dl><a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a> |
242 <h4>UnittestDialog.__UTPrepared</h4> |
242 <h4>UnittestDialog.__UTPrepared</h4> |
243 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>) |
243 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>) |
244 <p> |
244 <p> |
245 Private slot to handle the utPrepared signal. |
245 Private slot to handle the utPrepared signal. |
246 </p><p> |
246 </p><p> |
247 If the unittest suite was loaded successfully, we ask the |
247 If the unittest suite was loaded successfully, we ask the |
248 client to run the test suite. |
248 client to run the test suite. |
249 </p><dl> |
249 </p><dl> |
250 <dt><i>nrTests</i></dt> |
250 <dt><i>nrTests</i></dt> |
251 <dd> |
251 <dd> |
252 number of tests contained in the test suite (integer) |
252 number of tests contained in the test suite (integer) |
253 </dd><dt><i>exc_type</i></dt> |
253 </dd><dt><i>exc_type</i></dt> |
254 <dd> |
254 <dd> |
255 type of exception occured during preparation (string) |
255 type of exception occured during preparation (string) |
256 </dd><dt><i>exc_value</i></dt> |
256 </dd><dt><i>exc_value</i></dt> |
257 <dd> |
257 <dd> |
258 value of exception occured during preparation (string) |
258 value of exception occured during preparation (string) |
259 </dd> |
259 </dd> |
260 </dl><a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a> |
260 </dl><a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a> |
261 <h4>UnittestDialog.__setProgressColor</h4> |
261 <h4>UnittestDialog.__setProgressColor</h4> |
262 <b>__setProgressColor</b>(<i>color</i>) |
262 <b>__setProgressColor</b>(<i>color</i>) |
263 <p> |
263 <p> |
264 Private methode to set the color of the progress color label. |
264 Private methode to set the color of the progress color label. |
265 </p><dl> |
265 </p><dl> |
266 <dt><i>color</i></dt> |
266 <dt><i>color</i></dt> |
267 <dd> |
267 <dd> |
268 colour to be shown (string) |
268 colour to be shown (string) |
269 </dd> |
269 </dd> |
270 </dl><a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a> |
270 </dl><a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a> |
271 <h4>UnittestDialog.__setRunningMode</h4> |
271 <h4>UnittestDialog.__setRunningMode</h4> |
272 <b>__setRunningMode</b>(<i></i>) |
272 <b>__setRunningMode</b>(<i></i>) |
273 <p> |
273 <p> |
274 Private method to set the GUI in running mode. |
274 Private method to set the GUI in running mode. |
275 </p><a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a> |
275 </p><a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a> |
276 <h4>UnittestDialog.__setStoppedMode</h4> |
276 <h4>UnittestDialog.__setStoppedMode</h4> |
277 <b>__setStoppedMode</b>(<i></i>) |
277 <b>__setStoppedMode</b>(<i></i>) |
278 <p> |
278 <p> |
279 Private method to set the GUI in stopped mode. |
279 Private method to set the GUI in stopped mode. |
280 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a> |
280 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a> |
281 <h4>UnittestDialog.__showSource</h4> |
281 <h4>UnittestDialog.__showSource</h4> |
282 <b>__showSource</b>(<i></i>) |
282 <b>__showSource</b>(<i></i>) |
283 <p> |
283 <p> |
284 Private slot to show the source of a traceback in an eric5 editor. |
284 Private slot to show the source of a traceback in an eric5 editor. |
285 </p><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a> |
285 </p><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a> |
286 <h4>UnittestDialog.insertProg</h4> |
286 <h4>UnittestDialog.insertProg</h4> |
287 <b>insertProg</b>(<i>prog</i>) |
287 <b>insertProg</b>(<i>prog</i>) |
288 <p> |
288 <p> |
289 Public slot to insert the filename prog into the testsuiteComboBox object. |
289 Public slot to insert the filename prog into the testsuiteComboBox object. |
290 </p><dl> |
290 </p><dl> |
291 <dt><i>prog</i></dt> |
291 <dt><i>prog</i></dt> |
292 <dd> |
292 <dd> |
293 filename to be inserted (string) |
293 filename to be inserted (string) |
294 </dd> |
294 </dd> |
295 </dl><a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a> |
295 </dl><a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a> |
296 <h4>UnittestDialog.insertTestName</h4> |
296 <h4>UnittestDialog.insertTestName</h4> |
297 <b>insertTestName</b>(<i>testName</i>) |
297 <b>insertTestName</b>(<i>testName</i>) |
298 <p> |
298 <p> |
299 Public slot to insert a test name into the testComboBox object. |
299 Public slot to insert a test name into the testComboBox object. |
300 </p><dl> |
300 </p><dl> |
301 <dt><i>testName</i></dt> |
301 <dt><i>testName</i></dt> |
302 <dd> |
302 <dd> |
303 name of the test to be inserted (string) |
303 name of the test to be inserted (string) |
304 </dd> |
304 </dd> |
305 </dl><a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a> |
305 </dl><a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a> |
306 <h4>UnittestDialog.on_buttonBox_clicked</h4> |
306 <h4>UnittestDialog.on_buttonBox_clicked</h4> |
307 <b>on_buttonBox_clicked</b>(<i>button</i>) |
307 <b>on_buttonBox_clicked</b>(<i>button</i>) |
308 <p> |
308 <p> |
309 Private slot called by a button of the button box clicked. |
309 Private slot called by a button of the button box clicked. |
310 </p><dl> |
310 </p><dl> |
311 <dt><i>button</i></dt> |
311 <dt><i>button</i></dt> |
312 <dd> |
312 <dd> |
313 button that was clicked (QAbstractButton) |
313 button that was clicked (QAbstractButton) |
314 </dd> |
314 </dd> |
315 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> |
315 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> |
316 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> |
316 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> |
317 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) |
317 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) |
318 <p> |
318 <p> |
319 Private slot to handle the highlighted signal. |
319 Private slot to handle the highlighted signal. |
320 </p><dl> |
320 </p><dl> |
321 <dt><i>txt</i></dt> |
321 <dt><i>txt</i></dt> |
322 <dd> |
322 <dd> |
323 current text (string) |
323 current text (string) |
324 </dd> |
324 </dd> |
325 </dl><a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a> |
325 </dl><a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a> |
326 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4> |
326 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4> |
327 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>) |
327 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>) |
328 <p> |
328 <p> |
329 Private slot called by doubleclicking an errorlist entry. |
329 Private slot called by doubleclicking an errorlist entry. |
330 </p><p> |
330 </p><p> |
331 It will popup a dialog showing the stacktrace. |
331 It will popup a dialog showing the stacktrace. |
332 If called from eric, an additional button is displayed |
332 If called from eric, an additional button is displayed |
333 to show the python source in an eric source viewer (in |
333 to show the python source in an eric source viewer (in |
334 erics main window. |
334 erics main window. |
335 </p><dl> |
335 </p><dl> |
336 <dt><i>lbitem</i></dt> |
336 <dt><i>lbitem</i></dt> |
337 <dd> |
337 <dd> |
338 the listbox item that was double clicked |
338 the listbox item that was double clicked |
339 </dd> |
339 </dd> |
340 </dl><a NAME="UnittestDialog.on_fileDialogButton_clicked" ID="UnittestDialog.on_fileDialogButton_clicked"></a> |
340 </dl><a NAME="UnittestDialog.on_fileDialogButton_clicked" ID="UnittestDialog.on_fileDialogButton_clicked"></a> |
341 <h4>UnittestDialog.on_fileDialogButton_clicked</h4> |
341 <h4>UnittestDialog.on_fileDialogButton_clicked</h4> |
342 <b>on_fileDialogButton_clicked</b>(<i></i>) |
342 <b>on_fileDialogButton_clicked</b>(<i></i>) |
343 <p> |
343 <p> |
344 Private slot to open a file dialog. |
344 Private slot to open a file dialog. |
345 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a> |
345 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a> |
346 <h4>UnittestDialog.on_startButton_clicked</h4> |
346 <h4>UnittestDialog.on_startButton_clicked</h4> |
347 <b>on_startButton_clicked</b>(<i></i>) |
347 <b>on_startButton_clicked</b>(<i></i>) |
348 <p> |
348 <p> |
349 Public slot to start the test. |
349 Public slot to start the test. |
350 </p><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a> |
350 </p><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a> |
351 <h4>UnittestDialog.on_stopButton_clicked</h4> |
351 <h4>UnittestDialog.on_stopButton_clicked</h4> |
352 <b>on_stopButton_clicked</b>(<i></i>) |
352 <b>on_stopButton_clicked</b>(<i></i>) |
353 <p> |
353 <p> |
354 Private slot to stop the test. |
354 Private slot to stop the test. |
355 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a> |
355 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a> |
356 <h4>UnittestDialog.on_testsuiteComboBox_editTextChanged</h4> |
356 <h4>UnittestDialog.on_testsuiteComboBox_editTextChanged</h4> |
357 <b>on_testsuiteComboBox_editTextChanged</b>(<i>txt</i>) |
357 <b>on_testsuiteComboBox_editTextChanged</b>(<i>txt</i>) |
358 <p> |
358 <p> |
359 Private slot to handle changes of the test file name. |
359 Private slot to handle changes of the test file name. |
360 </p><dl> |
360 </p><dl> |
361 <dt><i>txt</i></dt> |
361 <dt><i>txt</i></dt> |
362 <dd> |
362 <dd> |
363 name of the test file (string) |
363 name of the test file (string) |
364 </dd> |
364 </dd> |
365 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a> |
365 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a> |
366 <h4>UnittestDialog.testErrored</h4> |
366 <h4>UnittestDialog.testErrored</h4> |
367 <b>testErrored</b>(<i>test, exc</i>) |
367 <b>testErrored</b>(<i>test, exc</i>) |
368 <p> |
368 <p> |
369 Public method called if a test errors. |
369 Public method called if a test errors. |
370 </p><dl> |
370 </p><dl> |
371 <dt><i>test</i></dt> |
371 <dt><i>test</i></dt> |
372 <dd> |
372 <dd> |
373 name of the failed test (string) |
373 name of the failed test (string) |
374 </dd><dt><i>exc</i></dt> |
374 </dd><dt><i>exc</i></dt> |
375 <dd> |
375 <dd> |
376 string representation of the exception (list of strings) |
376 string representation of the exception (list of strings) |
377 </dd> |
377 </dd> |
378 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a> |
378 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a> |
379 <h4>UnittestDialog.testFailed</h4> |
379 <h4>UnittestDialog.testFailed</h4> |
380 <b>testFailed</b>(<i>test, exc</i>) |
380 <b>testFailed</b>(<i>test, exc</i>) |
381 <p> |
381 <p> |
382 Public method called if a test fails. |
382 Public method called if a test fails. |
383 </p><dl> |
383 </p><dl> |
384 <dt><i>test</i></dt> |
384 <dt><i>test</i></dt> |
385 <dd> |
385 <dd> |
386 name of the failed test (string) |
386 name of the failed test (string) |
387 </dd><dt><i>exc</i></dt> |
387 </dd><dt><i>exc</i></dt> |
388 <dd> |
388 <dd> |
389 string representation of the exception (list of strings) |
389 string representation of the exception (list of strings) |
390 </dd> |
390 </dd> |
391 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a> |
391 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a> |
392 <h4>UnittestDialog.testFinished</h4> |
392 <h4>UnittestDialog.testFinished</h4> |
393 <b>testFinished</b>(<i></i>) |
393 <b>testFinished</b>(<i></i>) |
394 <p> |
394 <p> |
395 Public method called if a test has finished. |
395 Public method called if a test has finished. |
396 </p><p> |
396 </p><p> |
397 <b>Note</b>: It is also called if it has already failed or errored. |
397 <b>Note</b>: It is also called if it has already failed or errored. |
398 </p><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a> |
398 </p><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a> |
399 <h4>UnittestDialog.testStarted</h4> |
399 <h4>UnittestDialog.testStarted</h4> |
400 <b>testStarted</b>(<i>test, doc</i>) |
400 <b>testStarted</b>(<i>test, doc</i>) |
401 <p> |
401 <p> |
402 Public method called if a test is about to be run. |
402 Public method called if a test is about to be run. |
403 </p><dl> |
403 </p><dl> |
404 <dt><i>test</i></dt> |
404 <dt><i>test</i></dt> |
405 <dd> |
405 <dd> |
406 name of the started test (string) |
406 name of the started test (string) |
407 </dd><dt><i>doc</i></dt> |
407 </dd><dt><i>doc</i></dt> |
408 <dd> |
408 <dd> |
409 documentation of the started test (string) |
409 documentation of the started test (string) |
410 </dd> |
410 </dd> |
411 </dl> |
411 </dl> |
412 <div align="right"><a href="#top">Up</a></div> |
412 <div align="right"><a href="#top">Up</a></div> |
413 <hr /><hr /> |
413 <hr /><hr /> |
414 <a NAME="UnittestWindow" ID="UnittestWindow"></a> |
414 <a NAME="UnittestWindow" ID="UnittestWindow"></a> |
415 <h2>UnittestWindow</h2> |
415 <h2>UnittestWindow</h2> |
416 <p> |
416 <p> |
417 Main window class for the standalone dialog. |
417 Main window class for the standalone dialog. |
418 </p> |
418 </p> |
419 <h3>Derived from</h3> |
419 <h3>Derived from</h3> |
420 QMainWindow |
420 QMainWindow |
421 <h3>Class Attributes</h3> |
421 <h3>Class Attributes</h3> |
422 <table> |
422 <table> |