--- a/src/eric7/Testing/Interfaces/PytestExecutor.py Mon Sep 05 18:08:58 2022 +0200 +++ b/src/eric7/Testing/Interfaces/PytestExecutor.py Tue Sep 06 13:39:18 2022 +0200 @@ -87,6 +87,18 @@ return False + def supportsPatterns(self, interpreter): + """ + Public method to indicate the support for test filtering using test name + patterns or a test name pattern expression. + + @param interpreter interpreter to be used for the test + @type str + @return flag indicating support of markers + @rtype bool + """ + return True + def supportsMarkers(self, interpreter): """ Public method to indicate the support for test filtering using markers and/or @@ -164,6 +176,10 @@ args.append("-m") args.append(config.testMarkerExpression) + if config.testNamePattern: + args.append("-k") + args.append(config.testNamePattern) + if config.testFilename: if config.testName: args.append(