diff -r eab09a1ab8ce -r 8d3ae97ee666 eric7/Testing/TestingWidget.py --- a/eric7/Testing/TestingWidget.py Tue May 17 17:23:07 2022 +0200 +++ b/eric7/Testing/TestingWidget.py Wed May 18 08:43:36 2022 +0200 @@ -315,17 +315,20 @@ start) @pyqtSlot(str) - def setTestFile(self, testFile): + def setTestFile(self, testFile, forProject=False): """ Public slot to set the given test file as the current one. @param testFile path of the test file @type str + @param forProject flag indicating that this call is for a project + (defaults to False) + @type bool (optional) """ if testFile: self.__insertTestFile(testFile) - self.discoverCheckBox.setChecked(not bool(testFile)) + self.discoverCheckBox.setChecked(forProject or not bool(testFile)) self.tabWidget.setCurrentIndex(0)