Module implementing the UI to the pyunit package.
None |
QtTestResult | A TestResult derivative to work with a graphical GUI. |
UnittestDialog | Class implementing the UI to the pyunit package. |
UnittestWindow | Main window class for the standalone dialog. |
None |
A TestResult derivative to work with a graphical GUI.
For more details see pyunit.py of the standard python distribution.
None |
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.
None |
UnittestDialog | Constructor |
__UTPrepared | Private slot to handle the utPrepared signal. |
__setProgressColor | Private methode to set the color of the progress color label. |
__setRunningMode | Private method to set the GUI in running mode. |
__setStoppedMode | Private method to set the GUI in stopped mode. |
__showSource | Private slot to show the source of a traceback in an eric4 editor. |
insertProg | Public slot to insert the filename prog into the testsuiteComboBox object. |
insertTestName | Public slot to insert a test name into the testComboBox object. |
on_buttonBox_clicked | Private slot called by a button of the button box clicked. |
on_errorsListWidget_currentTextChanged | Private slot to handle the highlighted(const QString&) signal. |
on_errorsListWidget_itemDoubleClicked | Private slot called by doubleclicking an errorlist entry. |
on_fileDialogButton_clicked | Private slot to open a file dialog. |
on_startButton_clicked | Public slot to start the test. |
on_stopButton_clicked | Private slot to stop the test. |
on_testsuiteComboBox_editTextChanged | Private slot to handle changes of the test file name. |
testErrored | Public method called if a test errors. |
testFailed | Public method called if a test fails. |
testFinished | Public method called if a test has finished. |
testStarted | Public method called if a test is about to be run. |
Constructor
Private slot to handle the utPrepared signal.
If the unittest suite was loaded successfully, we ask the client to run the test suite.
Private methode to set the color of the progress color label.
Private method to set the GUI in running mode.
Private method to set the GUI in stopped mode.
Private slot to show the source of a traceback in an eric4 editor.
Public slot to insert the filename prog into the testsuiteComboBox object.
Public slot to insert a test name into the testComboBox object.
Private slot called by a button of the button box clicked.
Private slot to handle the highlighted(const QString&) signal.
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 slot to open a file dialog.
Public slot to start the test.
Private slot to stop the test.
Private slot to handle changes of the test file name.
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.
Main window class for the standalone dialog.
None |
UnittestWindow | Constructor |
eventFilter | Public method to filter events. |
Constructor
Public method to filter events.