src/eric7/Testing/Interfaces/PytestExecutor.py

branch
eric7
changeset 9313
6bac6775abb2
parent 9311
8e588f403fd9
child 9371
1da8bc75946f
child 9413
80c06d472826
--- 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(

eric ide

mercurial