diff -r f1d7dd7ae471 -r 339bb8c8007d eric7/Unittest/UTTestResultsTree.py --- a/eric7/Unittest/UTTestResultsTree.py Sat May 14 18:56:52 2022 +0200 +++ b/eric7/Unittest/UTTestResultsTree.py Sun May 15 18:08:31 2022 +0200 @@ -243,6 +243,8 @@ self.beginResetModel() self.__testResults.clear() self.endResetModel() + + self.summary.emit("") def sort(self, column, order): """ @@ -355,6 +357,21 @@ if testResultsToBeAdded: self.addTestResults(testResultsToBeAdded) + def getFailedTests(self): + """ + Public method to extract the test ids of all failed tests. + + @return test ids of all failed tests + @rtype list of str + """ + failedIds = [ + res.id for res in self.__testResults if ( + res.category == ResultCategory.FAIL and + not res.subtestResult + ) + ] + return failedIds + def __summary(self): """ Private method to generate a test results summary text.