640 """ |
640 """ |
641 self.__mode = TestingWidgetModes.DISCOVERY |
641 self.__mode = TestingWidgetModes.DISCOVERY |
642 |
642 |
643 self.__totalCount = 0 |
643 self.__totalCount = 0 |
644 |
644 |
645 self.sbLabel.setText("Discovering Tests") |
|
646 self.tabWidget.setCurrentIndex(0) |
645 self.tabWidget.setCurrentIndex(0) |
647 self.__updateButtonBoxButtons() |
646 self.__updateButtonBoxButtons() |
648 |
647 |
649 @pyqtSlot() |
648 @pyqtSlot() |
650 def __setRunningMode(self): |
649 def __setRunningMode(self): |
1326 |
1325 |
1327 self.venvComboBox.setCurrentText("") |
1326 self.venvComboBox.setCurrentText("") |
1328 |
1327 |
1329 self.frameworkComboBox.setCurrentText("") |
1328 self.frameworkComboBox.setCurrentText("") |
1330 self.__insertDiscovery("") |
1329 self.__insertDiscovery("") |
|
1330 |
|
1331 # clear latest log assuming it was for a project test run |
|
1332 self.__recentLog = "" |
1331 |
1333 |
1332 @pyqtSlot(str, int) |
1334 @pyqtSlot(str, int) |
1333 def __showSource(self, filename, lineno): |
1335 def __showSource(self, filename, lineno): |
1334 """ |
1336 """ |
1335 Private slot to show the source of a traceback in an editor. |
1337 Private slot to show the source of a traceback in an editor. |
1489 ).format( |
1491 ).format( |
1490 self.discoveryPicker.currentText(), |
1492 self.discoveryPicker.currentText(), |
1491 "<br/>".join(error.splitlines()), |
1493 "<br/>".join(error.splitlines()), |
1492 ), |
1494 ), |
1493 ) |
1495 ) |
|
1496 self.sbLabel.clear() |
1494 |
1497 |
1495 def __testDiscoveryProcessFinished(self, results, output): # noqa: U100 |
1498 def __testDiscoveryProcessFinished(self, results, output): # noqa: U100 |
1496 """ |
1499 """ |
1497 Private slot to handle the 'testFinished' signal of the executor in |
1500 Private slot to handle the 'testFinished' signal of the executor in |
1498 discovery mode. |
1501 discovery mode. |