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 |
None |
QtTestResult | Constructor |
addError | Public method called if a test errored. |
addExpectedFailure | Public method called if a test failed expected. |
addFailure | Public method called if a test failed. |
addSkip | Public method called if a test was skipped. |
addUnexpectedSuccess | Public method called if a test succeeded expectedly. |
startTest | Public method called at the start of a test. |
stopTest | Public method called at the end of a test. |
None |
Constructor
Public method called if a test errored.
Public method called if a test failed expected.
Public method called if a test failed.
Public method called if a test was skipped.
Public method called if a test succeeded expectedly.
Public method called at the start of a test.
Public method called at the end of a test.
Class implementing the UI to the pyunit package.
ErrorsInfoRole |
TestCaseFileRole |
TestCaseNameRole |
None |
UnittestDialog | Constructor |
__UTDiscovered | Private slot to handle the utDiscovered signal. |
__UTPrepared | Private slot to handle the utPrepared signal. |
__assembleTestCasesList | Private method to assemble a list of test cases included in a test suite. |
__discover | Private slot to discover unit test but don't run them. |
__findDiscoveryItem | Private method to find an item given the module path. |
__openEditor | Private method to open an editor window for the given file. |
__populateDiscoveryResults | Private method to populate the test discovery results list. |
__populateVenvComboBox | Private method to (re-)populate the virtual environments selector. |
__selectedTestCases | Private method to assemble the list of selected test cases and suites. |
__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 eric6 editor. |
__stopTests | Private slot to stop the test. |
closeEvent | Protected method to handle the close event. |
hasFailedTests | Public method to check, if there are failed tests from the last run. |
insertDiscovery | Public slot to insert the discovery start directory into the discoveryPicker object. |
insertProg | Public slot to insert the filename prog into the testsuitePicker object. |
insertTestName | Public slot to insert a test name into the testComboBox object. |
keyPressEvent | Protected slot to handle key press events. |
on_buttonBox_clicked | Private slot called by a button of the button box clicked. |
on_discoverCheckBox_toggled | Private slot handling state changes of the 'discover' checkbox. |
on_discoveryList_itemChanged | Private slot handling the user checking or unchecking an item. |
on_discoveryList_itemDoubleClicked | Private slot handling the user double clicking an item. |
on_errorsListWidget_currentTextChanged | Private slot to handle the highlighted signal. |
on_errorsListWidget_itemDoubleClicked | Private slot called by doubleclicking an errorlist entry. |
on_testsuitePicker_aboutToShowPathPickerDialog | Private slot called before the test suite selection dialog is shown. |
on_testsuitePicker_editTextChanged | Private slot handling changes of the test suite path. |
on_testsuitePicker_pathSelected | Private slot called after a test suite has been selected. |
setProjectMode | Public method to set the project mode of the dialog. |
startTests | Public slot to start the test. |
testErrored | Public method called if a test errors. |
testFailed | Public method called if a test fails. |
testFailedExpected | Public method called if a test fails expectedly. |
testFinished | Public method called if a test has finished. |
testSkipped | Public method called if a test was skipped. |
testStarted | Public method called if a test is about to be run. |
testSucceededUnexpected | Public method called if a test succeeds unexpectedly. |
None |
Constructor
Private slot to handle the utDiscovered signal.
If the unittest suite was loaded successfully, we ask the client to run the test suite.
Private slot to handle the utPrepared signal.
If the unittest suite was loaded successfully, we ask the client to run the test suite.
Private method to assemble a list of test cases included in a test suite.
Private slot to discover unit test but don't run them.
Private method to find an item given the module path.
Private method to open an editor window for the given file.
Note: This method opens an editor window when the unittest dialog is called as a standalone application.
Private method to populate the test discovery results list.
Private method to (re-)populate the virtual environments selector.
Private method to assemble the list of selected test cases and suites.
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 eric6 editor.
Private slot to stop the test.
Protected method to handle the close event.
Public method to check, if there are failed tests from the last run.
Public slot to insert the discovery start directory into the discoveryPicker object.
Public slot to insert the filename prog into the testsuitePicker object.
Public slot to insert a test name into the testComboBox object.
Protected slot to handle key press events.
Private slot called by a button of the button box clicked.
Private slot handling state changes of the 'discover' checkbox.
Private slot handling the user checking or unchecking an item.
Private slot handling the user double clicking an item.
Private slot to handle the highlighted 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 called before the test suite selection dialog is shown.
Private slot handling changes of the test suite path.
Private slot called after a test suite has been selected.
Public method to set the project mode of the dialog.
Public slot to start the test.
Public method called if a test errors.
Public method called if a test fails.
Public method called if a test fails expectedly.
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 was skipped.
Public method called if a test is about to be run.
Public method called if a test succeeds unexpectedly.
Main window class for the standalone dialog.
None |
None |
UnittestWindow | Constructor |
eventFilter | Public method to filter events. |
None |
Constructor
Public method to filter events.