src/eric7/Testing/Interfaces/TestExecutorBase.py

branch
eric7
changeset 9311
8e588f403fd9
parent 9221
bf71ee032bb4
child 9313
6bac6775abb2
equal deleted inserted replaced
9310:8ab45a4a6d96 9311:8e588f403fd9
57 interpreter: str # path of the Python interpreter 57 interpreter: str # path of the Python interpreter
58 discover: bool # auto discovery flag 58 discover: bool # auto discovery flag
59 discoveryStart: str # start directory for auto discovery 59 discoveryStart: str # start directory for auto discovery
60 testFilename: str # name of the test script 60 testFilename: str # name of the test script
61 testName: str # name of the test function 61 testName: str # name of the test function
62 testMarkerExpression: str # marker expression for test selection
62 failFast: bool # stop on first fail 63 failFast: bool # stop on first fail
63 failedOnly: bool # run failed tests only 64 failedOnly: bool # run failed tests only
64 collectCoverage: bool # coverage collection flag 65 collectCoverage: bool # coverage collection flag
65 eraseCoverage: bool # erase coverage data first 66 eraseCoverage: bool # erase coverage data first
66 coverageFile: str # name of the coverage data file 67 coverageFile: str # name of the coverage data file
145 @param interpreter interpreter to be used for the test 146 @param interpreter interpreter to be used for the test
146 @type str 147 @type str
147 @return dictionary containing the framework name and version and the 148 @return dictionary containing the framework name and version and the
148 list of available plugins with name and version each 149 list of available plugins with name and version each
149 @rtype dict 150 @rtype dict
150 @exception NotImplementedError this method needs to be implemented by 151 """
151 derived classes
152 """
153 raise NotImplementedError
154
155 return {} 152 return {}
156 153
157 def hasCoverage(self, interpreter): 154 def hasCoverage(self, interpreter):
158 """ 155 """
159 Public method to get the test framework version and version information 156 Public method to get the test framework version and version information
161 158
162 @param interpreter interpreter to be used for the test 159 @param interpreter interpreter to be used for the test
163 @type str 160 @type str
164 @return flag indicating the availability of coverage functionality 161 @return flag indicating the availability of coverage functionality
165 @rtype bool 162 @rtype bool
166 @exception NotImplementedError this method needs to be implemented by 163 """
167 derived classes
168 """
169 raise NotImplementedError
170
171 return False 164 return False
165
166 def supportsMarkers(self, interpreter):
167 """
168 Public method to indicate the support for test filtering using markers and/or
169 marker expressions.
170
171 @param interpreter interpreter to be used for the test
172 @type str
173 @return flag indicating support of markers
174 @rtype bool
175 """
176 return False
177
178 def getMarkers(self, interpreter, workdir):
179 """
180 Public method to get the list of defined markers.
181
182 @param interpreter interpreter to be used for the test
183 @type str
184 @param workdir name of the working directory
185 @type str
186 @return dictionary containing the marker as key and the associated description
187 as value
188 @rtype dict
189 """
190 return {}
172 191
173 def createArguments(self, config): 192 def createArguments(self, config):
174 """ 193 """
175 Public method to create the arguments needed to start the test process. 194 Public method to create the arguments needed to start the test process.
176 195

eric ide

mercurial