Module implementing the UI to the pyunit package.
QtTestResult | A TestResult derivative to work with a graphical GUI. |
UnittestDialog | Class implementing the UI to the pyunit package. |
None |
A TestResult derivative to work with a graphical GUI.
For more details see pyunit.py of the standard python distribution.
QtTestResult | Constructor |
addError | Method called if a test errored. |
addFailure | Method called if a test failed. |
startTest | Method called at the start of a test. |
stopTest | Method called at the end of a test. |
Constructor
Method called if a test errored.
Method called if a test failed.
Method called at the start of a test.
Method called at the end of a test.
Class implementing the UI to the pyunit package.
UnittestDialog | Constructor |
colorizeProgressbar | Private methode to set the color of the progressbar. |
handleErrorHighlighted | Private slot to handle the highlighted(const QString&) signal. |
handleFileDialog | Private slot to open a file dialog. |
handleListboxDoubleClick | Private slot called by doubleclicking an errorlist entry. |
handleRunning | Private method to set the GUI in running mode. |
handleShowSource | Private slot to show the source of a traceback in an eric3 editor. |
handleStartTest | Public slot to start the test. |
handleStopTest | Private slot to stop the test. |
handleStopped | Private method to set the GUI in stopped mode. |
handleTestErrored | Public method called if a test errors. |
handleTestFailed | Public method called if a test fails. |
handleTestFinished | Public method called if a test has finished. |
handleTestStarted | Public method called if a test is about to be run. |
handleUTPrepared | Private slot to handle the utPrepared signal. |
insertProg | Public slot to insert the filename prog into the testsuiteComboBox object. |
Constructor
Private methode to set the color of the progressbar.
Private slot to handle the highlighted(const QString&) signal.
Private slot to open a file dialog.
Private slot called by doubleclicking an errorlist entry.
It will popup a dialog showing the stacktrace. If called from eric, an additional button is displayed to show the python source in an eric source viewer (in erics main window.
Private method to set the GUI in running mode.
Private slot to show the source of a traceback in an eric3 editor.
Public slot to start the test.
Private slot to stop the test.
Private method to set the GUI in stopped mode.
Public method called if a test errors.
Public method called if a test fails.
Public method called if a test has finished.
Note: It is also called if it has already failed or errored.
Public method called if a test is about to be run.
Private slot to handle the utPrepared signal.
If the unittest suite was loaded successfully, we ask the client to run the test suite.
Public slot to insert the filename prog into the testsuiteComboBox object.