Module implementing a widget to orchestrate unit test execution.
None |
TestingWidget | Class implementing a widget to orchestrate unit test execution. |
TestingWidgetModes | Class defining the various modes of the testing widget. |
TestingWindow | Main window class for the standalone dialog. |
clearSavedHistories | Function to clear the saved history lists. |
Class implementing a widget to orchestrate unit test execution.
TestCaseFileRole |
TestCaseIdRole |
TestCaseLinenoRole |
TestCaseNameRole |
None |
TestingWidget | Constructor |
__adjustPendingState | Private method to change the status indicator of all still pending tests to "not run". |
__coverageData | Private slot to handle the 'coverageData' signal of the executor. |
__determineInterpreter | Private method to determine the interpreter to be used. |
__discoverTests | Private slot to discover tests but don't execute them. |
__findDiscoveryItem | Private method to find an item given the module path. |
__insertDiscovery | Private slot to insert the discovery start directory into the discoveryPicker object. |
__insertHistory | Private slot to insert an item into a history object. |
__insertTestFile | Private slot to insert a test file name into the testsuitePicker object. |
__insertTestName | Private slot to insert a test name into the testComboBox object. |
__loadRecent | Private method to load the most recently used lists. |
__openEditor | Private method to open an editor window for the given file. |
__populateTestFrameworkComboBox | Private method to (re-)populate the test framework selector. |
__populateVenvComboBox | Private method to (re-)populate the virtual environments selector. |
__processTestResult | Private slot to handle the receipt of a test result object. |
__projectClosed | Private slot to handle a project being closed. |
__projectOpened | Private slot to handle a project being opened. |
__resetResults | Private slot to reset the test results tab and data. |
__saveRecent | Private method to save the most recently used lists. |
__selectedTestCases | Private method to assemble the list of selected test cases and suites. |
__setDiscoverMode | Private slot to switch the widget to test discovery mode. |
__setIdleMode | Private slot to switch the widget to idle mode. |
__setRunningMode | Private slot to switch the widget to running mode. |
__setStatusLabel | Private slot to set the status label to the text sent by the model. |
__setStoppedMode | Private slot to switch the widget to stopped mode. |
__showCoverageDialog | Private slot to show a code coverage dialog for the most recent test run. |
__showLogOutput | Private slot to show the output of the most recent test run. |
__showSource | Private slot to show the source of a traceback in an editor. |
__stopTests | Private slot to stop the current test run. |
__testDiscoveryAboutToBeStarted | Private slot to handle the 'testDiscoveryAboutToBeStarted' signal of the executor. |
__testDiscoveryError | Private slot handling the 'collectError' signal of the executor. |
__testDiscoveryProcessFinished | Private slot to handle the 'testFinished' signal of the executor in discovery mode. |
__testProcessFinished | Private slot to handle the 'testFinished' signal of the executor. |
__testRunAboutToBeStarted | Private slot to handle the 'testRunAboutToBeStarted' signal of the executor. |
__testRunFinished | Private slot to handle the 'testRunFinished' signal of the executor. |
__testStarted | Private slot handling the 'startTest' signal of the executor. |
__testsCollectError | Private slot handling the 'collectError' signal of the executor. |
__testsCollected | Private slot handling the 'collected' signal of the executor. |
__testsDiscovered | Private slot handling the 'collected' signal of the executor in discovery mode. |
__testsStopped | Private slot to handle the 'stop' signal of the executor. |
__updateButtonBoxButtons | Private slot to update the state of the buttons of the button box. |
__updateCoverage | Private slot to update the state of the coverage checkbox depending on the selected framework's capabilities. |
__updateMarkerSupport | Private slot to update the state of the marker related widgets depending on the selected framework's capabilities. |
__updatePatternSupport | Private slot to update the state of the test name pattern line edit depending on the selected framework's capabilities. |
__updateProgress | Private slot to update the progress indicators. |
__updateStatusFilterComboBox | Private method to update the status filter dialog box. |
clearRecent | Public slot to clear the recently used lists. |
closeEvent | Protected method to handle the close event. |
getFailedTests | Public method to get the list of failed tests (if any). |
getResultsModel | Public method to get a reference to the model containing the test result data. |
hasFailedTests | Public method to check for failed tests. |
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_customContextMenuRequested | Private slot to show the context menu of the dicovery list. |
on_discoveryList_itemActivated | Private slot handling the user activating an item. |
on_discoveryList_itemChanged | Private slot handling the user checking or unchecking an item. |
on_discoveryPicker_editTextChanged | Private slot to handle a change of the discovery start directory. |
on_frameworkComboBox_currentIndexChanged | Private slot handling the selection of a test framework. |
on_showMarkersButton_clicked | Private slot to show a window containing the list of defined markers. |
on_statusFilterComboBox_currentTextChanged | Private slot handling the selection of a status for items to be shown. |
on_testsuitePicker_aboutToShowPathPickerDialog | Private slot called before the test file selection dialog is shown. |
on_venvComboBox_currentIndexChanged | Private slot handling the selection of a virtual environment. |
on_versionsButton_clicked | Private slot to show the versions of available plugins. |
setTestFile | Public slot to set the given test file as the current one. |
startTests | Public slot to start the test run. |
None |
Constructor
Private method to change the status indicator of all still pending tests to "not run".
Private slot to handle the 'coverageData' signal of the executor.
Private method to determine the interpreter to be used.
Private slot to discover tests but don't execute them.
Private method to find an item given the module path.
Private slot to insert the discovery start directory into the discoveryPicker object.
Private slot to insert an item into a history object.
Private slot to insert a test file name into the testsuitePicker object.
Private slot to insert a test name into the testComboBox object.
Private method to load the most recently used lists.
Private method to open an editor window for the given file.
Note: This method opens an editor window when the testing dialog is called as a standalone application.
Private method to (re-)populate the test framework selector.
Private method to (re-)populate the virtual environments selector.
Private slot to handle the receipt of a test result object.
Private slot to handle a project being closed.
Private slot to handle a project being opened.
Private slot to reset the test results tab and data.
Private method to save the most recently used lists.
Private method to assemble the list of selected test cases and suites.
Private slot to switch the widget to test discovery mode.
Private slot to switch the widget to idle mode.
Private slot to switch the widget to running mode.
Private slot to set the status label to the text sent by the model.
Private slot to switch the widget to stopped mode.
Private slot to show a code coverage dialog for the most recent test run.
Private slot to show the output of the most recent test run.
Private slot to show the source of a traceback in an editor.
Private slot to stop the current test run.
Private slot to handle the 'testDiscoveryAboutToBeStarted' signal of the executor.
Private slot handling the 'collectError' signal of the executor.
Private slot to handle the 'testFinished' signal of the executor in discovery mode.
Private slot to handle the 'testFinished' signal of the executor.
Private slot to handle the 'testRunAboutToBeStarted' signal of the executor.
Private slot to handle the 'testRunFinished' signal of the executor.
Private slot handling the 'startTest' signal of the executor.
Private slot handling the 'collectError' signal of the executor.
Private slot handling the 'collected' signal of the executor.
Private slot handling the 'collected' signal of the executor in discovery mode.
Private slot to handle the 'stop' signal of the executor.
Private slot to update the state of the buttons of the button box.
Private slot to update the state of the coverage checkbox depending on the selected framework's capabilities.
Private slot to update the state of the marker related widgets depending on the selected framework's capabilities.
Private slot to update the state of the test name pattern line edit depending on the selected framework's capabilities.
Private slot to update the progress indicators.
Private method to update the status filter dialog box.
Public slot to clear the recently used lists.
Protected method to handle the close event.
Public method to get the list of failed tests (if any).
Public method to get a reference to the model containing the test result data.
Public method to check for failed tests.
Private slot called by a button of the button box clicked.
Private slot handling state changes of the 'discover' checkbox.
Private slot to show the context menu of the dicovery list.
Private slot handling the user activating an item.
Private slot handling the user checking or unchecking an item.
Private slot to handle a change of the discovery start directory.
Private slot handling the selection of a test framework.
Private slot to show a window containing the list of defined markers.
Private slot handling the selection of a status for items to be shown.
Private slot called before the test file selection dialog is shown.
Private slot handling the selection of a virtual environment.
Private slot to show the versions of available plugins.
Public slot to set the given test file as the current one.
Public slot to start the test run.
Class defining the various modes of the testing widget.
DISCOVERY |
IDLE |
RUNNING |
STOPPED |
None |
None |
None |
Main window class for the standalone dialog.
None |
None |
TestingWindow | Constructor |
eventFilter | Public method to filter events. |
None |
Constructor
Public method to filter events.
Function to clear the saved history lists.