src/eric7/Testing/Interfaces/TestExecutorBase.py

branch
eric7
changeset 9311
8e588f403fd9
parent 9221
bf71ee032bb4
child 9313
6bac6775abb2
--- a/src/eric7/Testing/Interfaces/TestExecutorBase.py	Sun Sep 04 16:11:32 2022 +0200
+++ b/src/eric7/Testing/Interfaces/TestExecutorBase.py	Mon Sep 05 18:08:43 2022 +0200
@@ -59,6 +59,7 @@
     discoveryStart: str  # start directory for auto discovery
     testFilename: str  # name of the test script
     testName: str  # name of the test function
+    testMarkerExpression: str  # marker expression for test selection
     failFast: bool  # stop on first fail
     failedOnly: bool  # run failed tests only
     collectCoverage: bool  # coverage collection flag
@@ -147,11 +148,7 @@
         @return dictionary containing the framework name and version and the
             list of available plugins with name and version each
         @rtype dict
-        @exception NotImplementedError this method needs to be implemented by
-            derived classes
         """
-        raise NotImplementedError
-
         return {}
 
     def hasCoverage(self, interpreter):
@@ -163,12 +160,34 @@
         @type str
         @return flag indicating the availability of coverage functionality
         @rtype bool
-        @exception NotImplementedError this method needs to be implemented by
-            derived classes
+        """
+        return False
+
+    def supportsMarkers(self, interpreter):
+        """
+        Public method to indicate the support for test filtering using markers and/or
+        marker expressions.
+
+        @param interpreter interpreter to be used for the test
+        @type str
+        @return flag indicating support of markers
+        @rtype bool
         """
-        raise NotImplementedError
+        return False
+
+    def getMarkers(self, interpreter, workdir):
+        """
+        Public method to get the list of defined markers.
 
-        return False
+        @param interpreter interpreter to be used for the test
+        @type str
+        @param workdir name of the working directory
+        @type str
+        @return dictionary containing the marker as key and the associated description
+            as value
+        @rtype dict
+        """
+        return {}
 
     def createArguments(self, config):
         """

eric ide

mercurial