196 <h2>UnittestDialog</h2> |
196 <h2>UnittestDialog</h2> |
197 <p> |
197 <p> |
198 Class implementing the UI to the pyunit package. |
198 Class implementing the UI to the pyunit package. |
199 </p><h3>Signals</h3> |
199 </p><h3>Signals</h3> |
200 <dl> |
200 <dl> |
201 <dt>unittestFile(str, int, int)</dt> |
201 <dt>unittestFile(str, int, bool)</dt> |
202 <dd> |
202 <dd> |
203 emitted to show the source of a |
203 emitted to show the source of a |
204 unittest file |
204 unittest file |
205 </dd><dt>unittestStopped()</dt> |
205 </dd><dt>unittestStopped()</dt> |
206 <dd> |
206 <dd> |
209 </dl> |
209 </dl> |
210 <h3>Derived from</h3> |
210 <h3>Derived from</h3> |
211 QWidget, Ui_UnittestDialog |
211 QWidget, Ui_UnittestDialog |
212 <h3>Class Attributes</h3> |
212 <h3>Class Attributes</h3> |
213 <table> |
213 <table> |
214 <tr><td>None</td></tr> |
214 <tr><td>ErrorsInfoRole</td></tr><tr><td>TestCaseFileRole</td></tr><tr><td>TestCaseNameRole</td></tr> |
215 </table> |
215 </table> |
216 <h3>Class Methods</h3> |
216 <h3>Class Methods</h3> |
217 <table> |
217 <table> |
218 <tr><td>None</td></tr> |
218 <tr><td>None</td></tr> |
219 </table> |
219 </table> |
286 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
286 <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> |
287 <td>Private slot called by a button of the button box clicked.</td> |
288 </tr><tr> |
288 </tr><tr> |
289 <td><a href="#UnittestDialog.on_discoverCheckBox_toggled">on_discoverCheckBox_toggled</a></td> |
289 <td><a href="#UnittestDialog.on_discoverCheckBox_toggled">on_discoverCheckBox_toggled</a></td> |
290 <td>Private slot handling state changes of the 'discover' checkbox.</td> |
290 <td>Private slot handling state changes of the 'discover' checkbox.</td> |
|
291 </tr><tr> |
|
292 <td><a href="#UnittestDialog.on_discoveryList_itemDoubleClicked">on_discoveryList_itemDoubleClicked</a></td> |
|
293 <td>Private slot handling the user double clicking an item.</td> |
291 </tr><tr> |
294 </tr><tr> |
292 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> |
295 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> |
293 <td>Private slot to handle the highlighted signal.</td> |
296 <td>Private slot to handle the highlighted signal.</td> |
294 </tr><tr> |
297 </tr><tr> |
295 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> |
298 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> |
397 <dd> |
400 <dd> |
398 value of exception occured during preparation (string) |
401 value of exception occured during preparation (string) |
399 </dd> |
402 </dd> |
400 </dl><a NAME="UnittestDialog.__assembleTestCasesList" ID="UnittestDialog.__assembleTestCasesList"></a> |
403 </dl><a NAME="UnittestDialog.__assembleTestCasesList" ID="UnittestDialog.__assembleTestCasesList"></a> |
401 <h4>UnittestDialog.__assembleTestCasesList</h4> |
404 <h4>UnittestDialog.__assembleTestCasesList</h4> |
402 <b>__assembleTestCasesList</b>(<i>suite</i>) |
405 <b>__assembleTestCasesList</b>(<i>suite, start</i>) |
403 <p> |
406 <p> |
404 Private method to assemble a list of test cases included in a test |
407 Private method to assemble a list of test cases included in a test |
405 suite. |
408 suite. |
406 </p><dl> |
409 </p><dl> |
407 <dt><i>suite</i> (unittest.TestSuite)</dt> |
410 <dt><i>suite</i> (unittest.TestSuite)</dt> |
408 <dd> |
411 <dd> |
409 test suite to be inspected |
412 test suite to be inspected |
|
413 </dd><dt><i>start</i> (str)</dt> |
|
414 <dd> |
|
415 name of directory discovery was started at |
410 </dd> |
416 </dd> |
411 </dl><dl> |
417 </dl><dl> |
412 <dt>Returns:</dt> |
418 <dt>Returns:</dt> |
413 <dd> |
419 <dd> |
414 list of tuples containing the test case ID and short |
420 list of tuples containing the test case ID, a short description |
415 description |
421 and the path of the test file name |
416 </dd> |
422 </dd> |
417 </dl><dl> |
423 </dl><dl> |
418 <dt>Return Type:</dt> |
424 <dt>Return Type:</dt> |
419 <dd> |
425 <dd> |
420 list of tuples of (str, str) |
426 list of tuples of (str, str, str) |
421 </dd> |
427 </dd> |
422 </dl><a NAME="UnittestDialog.__discover" ID="UnittestDialog.__discover"></a> |
428 </dl><a NAME="UnittestDialog.__discover" ID="UnittestDialog.__discover"></a> |
423 <h4>UnittestDialog.__discover</h4> |
429 <h4>UnittestDialog.__discover</h4> |
424 <b>__discover</b>(<i></i>) |
430 <b>__discover</b>(<i></i>) |
425 <p> |
431 <p> |
464 <h4>UnittestDialog.__populateDiscoveryResults</h4> |
470 <h4>UnittestDialog.__populateDiscoveryResults</h4> |
465 <b>__populateDiscoveryResults</b>(<i>tests</i>) |
471 <b>__populateDiscoveryResults</b>(<i>tests</i>) |
466 <p> |
472 <p> |
467 Private method to populate the test discovery results list. |
473 Private method to populate the test discovery results list. |
468 </p><dl> |
474 </p><dl> |
469 <dt><i>tests</i> (list of tuples of (str, str))</dt> |
475 <dt><i>tests</i> (list of tuples of (str, str, str))</dt> |
470 <dd> |
476 <dd> |
471 list of tuples containing the discovery results |
477 list of tuples containing the discovery results |
472 </dd> |
478 </dd> |
473 </dl><a NAME="UnittestDialog.__populateVenvComboBox" ID="UnittestDialog.__populateVenvComboBox"></a> |
479 </dl><a NAME="UnittestDialog.__populateVenvComboBox" ID="UnittestDialog.__populateVenvComboBox"></a> |
474 <h4>UnittestDialog.__populateVenvComboBox</h4> |
480 <h4>UnittestDialog.__populateVenvComboBox</h4> |
604 Private slot handling state changes of the 'discover' checkbox. |
610 Private slot handling state changes of the 'discover' checkbox. |
605 </p><dl> |
611 </p><dl> |
606 <dt><i>checked</i> (bool)</dt> |
612 <dt><i>checked</i> (bool)</dt> |
607 <dd> |
613 <dd> |
608 state of the checkbox |
614 state of the checkbox |
|
615 </dd> |
|
616 </dl><a NAME="UnittestDialog.on_discoveryList_itemDoubleClicked" ID="UnittestDialog.on_discoveryList_itemDoubleClicked"></a> |
|
617 <h4>UnittestDialog.on_discoveryList_itemDoubleClicked</h4> |
|
618 <b>on_discoveryList_itemDoubleClicked</b>(<i>item, column</i>) |
|
619 <p> |
|
620 Private slot handling the user double clicking an item. |
|
621 </p><dl> |
|
622 <dt><i>item</i> (QTreeWidgetItem)</dt> |
|
623 <dd> |
|
624 reference to the item |
|
625 </dd><dt><i>column</i> (int)</dt> |
|
626 <dd> |
|
627 column of the double click |
609 </dd> |
628 </dd> |
610 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> |
629 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> |
611 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> |
630 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> |
612 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) |
631 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) |
613 <p> |
632 <p> |