Documentation/Source/eric5.PyUnit.UnittestDialog.html

changeset 1499
b4d0457afb15
parent 1482
10c46dea5fcf
child 2101
5bac7dee9e1a
equal deleted inserted replaced
1497:94f27ede4186 1499:b4d0457afb15
197 </p><h3>Signals</h3> 197 </p><h3>Signals</h3>
198 <dl> 198 <dl>
199 <dt>unittestFile(str, int, int)</dt> 199 <dt>unittestFile(str, int, int)</dt>
200 <dd> 200 <dd>
201 emitted to show the source of a unittest file 201 emitted to show the source of a unittest file
202 </dd><dt>unittestStopped()</dt>
203 <dd>
204 emitted after a unit test was run
202 </dd> 205 </dd>
203 </dl> 206 </dl>
204 <h3>Derived from</h3> 207 <h3>Derived from</h3>
205 QWidget, Ui_UnittestDialog 208 QWidget, Ui_UnittestDialog
206 <h3>Class Attributes</h3> 209 <h3>Class Attributes</h3>
230 <td>Private method to set the GUI in stopped mode.</td> 233 <td>Private method to set the GUI in stopped mode.</td>
231 </tr><tr> 234 </tr><tr>
232 <td><a href="#UnittestDialog.__showSource">__showSource</a></td> 235 <td><a href="#UnittestDialog.__showSource">__showSource</a></td>
233 <td>Private slot to show the source of a traceback in an eric5 editor.</td> 236 <td>Private slot to show the source of a traceback in an eric5 editor.</td>
234 </tr><tr> 237 </tr><tr>
238 <td><a href="#UnittestDialog.hasFailedTests">hasFailedTests</a></td>
239 <td>Public method to check, if there are failed tests from the last run.</td>
240 </tr><tr>
235 <td><a href="#UnittestDialog.insertProg">insertProg</a></td> 241 <td><a href="#UnittestDialog.insertProg">insertProg</a></td>
236 <td>Public slot to insert the filename prog into the testsuiteComboBox object.</td> 242 <td>Public slot to insert the filename prog into the testsuiteComboBox object.</td>
237 </tr><tr> 243 </tr><tr>
238 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td> 244 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td>
239 <td>Public slot to insert a test name into the testComboBox object.</td> 245 <td>Public slot to insert a test name into the testComboBox object.</td>
267 </tr><tr> 273 </tr><tr>
268 <td><a href="#UnittestDialog.testFailed">testFailed</a></td> 274 <td><a href="#UnittestDialog.testFailed">testFailed</a></td>
269 <td>Public method called if a test fails.</td> 275 <td>Public method called if a test fails.</td>
270 </tr><tr> 276 </tr><tr>
271 <td><a href="#UnittestDialog.testFailedExpected">testFailedExpected</a></td> 277 <td><a href="#UnittestDialog.testFailedExpected">testFailedExpected</a></td>
272 <td>Public method called if a test fails expected.</td> 278 <td>Public method called if a test fails expectedly.</td>
273 </tr><tr> 279 </tr><tr>
274 <td><a href="#UnittestDialog.testFinished">testFinished</a></td> 280 <td><a href="#UnittestDialog.testFinished">testFinished</a></td>
275 <td>Public method called if a test has finished.</td> 281 <td>Public method called if a test has finished.</td>
276 </tr><tr> 282 </tr><tr>
277 <td><a href="#UnittestDialog.testSkipped">testSkipped</a></td> 283 <td><a href="#UnittestDialog.testSkipped">testSkipped</a></td>
357 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a> 363 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a>
358 <h4>UnittestDialog.__showSource</h4> 364 <h4>UnittestDialog.__showSource</h4>
359 <b>__showSource</b>(<i></i>) 365 <b>__showSource</b>(<i></i>)
360 <p> 366 <p>
361 Private slot to show the source of a traceback in an eric5 editor. 367 Private slot to show the source of a traceback in an eric5 editor.
362 </p><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a> 368 </p><a NAME="UnittestDialog.hasFailedTests" ID="UnittestDialog.hasFailedTests"></a>
369 <h4>UnittestDialog.hasFailedTests</h4>
370 <b>hasFailedTests</b>(<i></i>)
371 <p>
372 Public method to check, if there are failed tests from the last run.
373 </p><dl>
374 <dt>Returns:</dt>
375 <dd>
376 flag indicating the presence of failed tests (boolean)
377 </dd>
378 </dl><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a>
363 <h4>UnittestDialog.insertProg</h4> 379 <h4>UnittestDialog.insertProg</h4>
364 <b>insertProg</b>(<i>prog</i>) 380 <b>insertProg</b>(<i>prog</i>)
365 <p> 381 <p>
366 Public slot to insert the filename prog into the testsuiteComboBox object. 382 Public slot to insert the filename prog into the testsuiteComboBox object.
367 </p><dl> 383 </p><dl>
429 <b>on_fileDialogButton_clicked</b>(<i></i>) 445 <b>on_fileDialogButton_clicked</b>(<i></i>)
430 <p> 446 <p>
431 Private slot to open a file dialog. 447 Private slot to open a file dialog.
432 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a> 448 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a>
433 <h4>UnittestDialog.on_startButton_clicked</h4> 449 <h4>UnittestDialog.on_startButton_clicked</h4>
434 <b>on_startButton_clicked</b>(<i></i>) 450 <b>on_startButton_clicked</b>(<i>failedOnly=False</i>)
435 <p> 451 <p>
436 Public slot to start the test. 452 Public slot to start the test.
437 </p><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a> 453 </p><dl>
454 <dt><i>failedOnly=</i></dt>
455 <dd>
456 flag indicating to run only failed tests (boolean)
457 </dd>
458 </dl><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a>
438 <h4>UnittestDialog.on_stopButton_clicked</h4> 459 <h4>UnittestDialog.on_stopButton_clicked</h4>
439 <b>on_stopButton_clicked</b>(<i></i>) 460 <b>on_stopButton_clicked</b>(<i></i>)
440 <p> 461 <p>
441 Private slot to stop the test. 462 Private slot to stop the test.
442 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a> 463 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a>
449 <dd> 470 <dd>
450 name of the test file (string) 471 name of the test file (string)
451 </dd> 472 </dd>
452 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a> 473 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a>
453 <h4>UnittestDialog.testErrored</h4> 474 <h4>UnittestDialog.testErrored</h4>
454 <b>testErrored</b>(<i>test, exc</i>) 475 <b>testErrored</b>(<i>test, exc, id</i>)
455 <p> 476 <p>
456 Public method called if a test errors. 477 Public method called if a test errors.
457 </p><dl> 478 </p><dl>
458 <dt><i>test</i></dt> 479 <dt><i>test</i></dt>
459 <dd> 480 <dd>
460 name of the failed test (string) 481 name of the test (string)
461 </dd><dt><i>exc</i></dt> 482 </dd><dt><i>exc</i></dt>
462 <dd> 483 <dd>
463 string representation of the exception (string) 484 string representation of the exception (string)
485 </dd><dt><i>id</i></dt>
486 <dd>
487 id of the test (string)
464 </dd> 488 </dd>
465 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a> 489 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a>
466 <h4>UnittestDialog.testFailed</h4> 490 <h4>UnittestDialog.testFailed</h4>
467 <b>testFailed</b>(<i>test, exc</i>) 491 <b>testFailed</b>(<i>test, exc, id</i>)
468 <p> 492 <p>
469 Public method called if a test fails. 493 Public method called if a test fails.
470 </p><dl> 494 </p><dl>
471 <dt><i>test</i></dt> 495 <dt><i>test</i></dt>
472 <dd> 496 <dd>
473 name of the failed test (string) 497 name of the test (string)
474 </dd><dt><i>exc</i></dt> 498 </dd><dt><i>exc</i></dt>
475 <dd> 499 <dd>
476 string representation of the exception (string) 500 string representation of the exception (string)
501 </dd><dt><i>id</i></dt>
502 <dd>
503 id of the test (string)
477 </dd> 504 </dd>
478 </dl><a NAME="UnittestDialog.testFailedExpected" ID="UnittestDialog.testFailedExpected"></a> 505 </dl><a NAME="UnittestDialog.testFailedExpected" ID="UnittestDialog.testFailedExpected"></a>
479 <h4>UnittestDialog.testFailedExpected</h4> 506 <h4>UnittestDialog.testFailedExpected</h4>
480 <b>testFailedExpected</b>(<i>test, exc</i>) 507 <b>testFailedExpected</b>(<i>test, exc, id</i>)
481 <p> 508 <p>
482 Public method called if a test fails expected. 509 Public method called if a test fails expectedly.
483 </p><dl> 510 </p><dl>
484 <dt><i>test</i></dt> 511 <dt><i>test</i></dt>
485 <dd> 512 <dd>
486 name of the failed test (string) 513 name of the test (string)
487 </dd><dt><i>exc</i></dt> 514 </dd><dt><i>exc</i></dt>
488 <dd> 515 <dd>
489 string representation of the exception (string) 516 string representation of the exception (string)
517 </dd><dt><i>id</i></dt>
518 <dd>
519 id of the test (string)
490 </dd> 520 </dd>
491 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a> 521 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a>
492 <h4>UnittestDialog.testFinished</h4> 522 <h4>UnittestDialog.testFinished</h4>
493 <b>testFinished</b>(<i></i>) 523 <b>testFinished</b>(<i></i>)
494 <p> 524 <p>
495 Public method called if a test has finished. 525 Public method called if a test has finished.
496 </p><p> 526 </p><p>
497 <b>Note</b>: It is also called if it has already failed or errored. 527 <b>Note</b>: It is also called if it has already failed or errored.
498 </p><a NAME="UnittestDialog.testSkipped" ID="UnittestDialog.testSkipped"></a> 528 </p><a NAME="UnittestDialog.testSkipped" ID="UnittestDialog.testSkipped"></a>
499 <h4>UnittestDialog.testSkipped</h4> 529 <h4>UnittestDialog.testSkipped</h4>
500 <b>testSkipped</b>(<i>test, reason</i>) 530 <b>testSkipped</b>(<i>test, reason, id</i>)
501 <p> 531 <p>
502 Public method called if a test was skipped. 532 Public method called if a test was skipped.
503 </p><dl> 533 </p><dl>
504 <dt><i>test</i></dt> 534 <dt><i>test</i></dt>
505 <dd> 535 <dd>
506 name of the failed test (string) 536 name of the test (string)
507 </dd><dt><i>reason</i></dt> 537 </dd><dt><i>reason</i></dt>
508 <dd> 538 <dd>
509 reason for skipping the test (string) 539 reason for skipping the test (string)
540 </dd><dt><i>id</i></dt>
541 <dd>
542 id of the test (string)
510 </dd> 543 </dd>
511 </dl><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a> 544 </dl><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a>
512 <h4>UnittestDialog.testStarted</h4> 545 <h4>UnittestDialog.testStarted</h4>
513 <b>testStarted</b>(<i>test, doc</i>) 546 <b>testStarted</b>(<i>test, doc</i>)
514 <p> 547 <p>
521 <dd> 554 <dd>
522 documentation of the started test (string) 555 documentation of the started test (string)
523 </dd> 556 </dd>
524 </dl><a NAME="UnittestDialog.testSucceededUnexpected" ID="UnittestDialog.testSucceededUnexpected"></a> 557 </dl><a NAME="UnittestDialog.testSucceededUnexpected" ID="UnittestDialog.testSucceededUnexpected"></a>
525 <h4>UnittestDialog.testSucceededUnexpected</h4> 558 <h4>UnittestDialog.testSucceededUnexpected</h4>
526 <b>testSucceededUnexpected</b>(<i>test</i>) 559 <b>testSucceededUnexpected</b>(<i>test, id</i>)
527 <p> 560 <p>
528 Public method called if a test succeeds unexpectedly. 561 Public method called if a test succeeds unexpectedly.
529 </p><dl> 562 </p><dl>
530 <dt><i>test</i></dt> 563 <dt><i>test</i></dt>
531 <dd> 564 <dd>
532 name of the failed test (string) 565 name of the test (string)
566 </dd><dt><i>id</i></dt>
567 <dd>
568 id of the test (string)
533 </dd> 569 </dd>
534 </dl> 570 </dl>
535 <div align="right"><a href="#top">Up</a></div> 571 <div align="right"><a href="#top">Up</a></div>
536 <hr /><hr /> 572 <hr /><hr />
537 <a NAME="UnittestWindow" ID="UnittestWindow"></a> 573 <a NAME="UnittestWindow" ID="UnittestWindow"></a>

eric ide

mercurial