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 |
|
63 testNamePattern: str # test name pattern expression or list |
62 failFast: bool # stop on first fail |
64 failFast: bool # stop on first fail |
63 failedOnly: bool # run failed tests only |
65 failedOnly: bool # run failed tests only |
64 collectCoverage: bool # coverage collection flag |
66 collectCoverage: bool # coverage collection flag |
65 eraseCoverage: bool # erase coverage data first |
67 eraseCoverage: bool # erase coverage data first |
66 coverageFile: str # name of the coverage data file |
68 coverageFile: str # name of the coverage data file |
145 @param interpreter interpreter to be used for the test |
147 @param interpreter interpreter to be used for the test |
146 @type str |
148 @type str |
147 @return dictionary containing the framework name and version and the |
149 @return dictionary containing the framework name and version and the |
148 list of available plugins with name and version each |
150 list of available plugins with name and version each |
149 @rtype dict |
151 @rtype dict |
150 @exception NotImplementedError this method needs to be implemented by |
152 """ |
151 derived classes |
|
152 """ |
|
153 raise NotImplementedError |
|
154 |
|
155 return {} |
153 return {} |
156 |
154 |
157 def hasCoverage(self, interpreter): |
155 def hasCoverage(self, interpreter): |
158 """ |
156 """ |
159 Public method to get the test framework version and version information |
157 Public method to get the test framework version and version information |
161 |
159 |
162 @param interpreter interpreter to be used for the test |
160 @param interpreter interpreter to be used for the test |
163 @type str |
161 @type str |
164 @return flag indicating the availability of coverage functionality |
162 @return flag indicating the availability of coverage functionality |
165 @rtype bool |
163 @rtype bool |
166 @exception NotImplementedError this method needs to be implemented by |
164 """ |
167 derived classes |
|
168 """ |
|
169 raise NotImplementedError |
|
170 |
|
171 return False |
165 return False |
|
166 |
|
167 def supportsPatterns(self, interpreter): |
|
168 """ |
|
169 Public method to indicate the support for test filtering using test name |
|
170 patterns or a test name pattern expression. |
|
171 |
|
172 @param interpreter interpreter to be used for the test |
|
173 @type str |
|
174 @return flag indicating support of markers |
|
175 @rtype bool |
|
176 """ |
|
177 return False |
|
178 |
|
179 def supportsMarkers(self, interpreter): |
|
180 """ |
|
181 Public method to indicate the support for test filtering using markers and/or |
|
182 marker expressions. |
|
183 |
|
184 @param interpreter interpreter to be used for the test |
|
185 @type str |
|
186 @return flag indicating support of markers |
|
187 @rtype bool |
|
188 """ |
|
189 return False |
|
190 |
|
191 def getMarkers(self, interpreter, workdir): |
|
192 """ |
|
193 Public method to get the list of defined markers. |
|
194 |
|
195 @param interpreter interpreter to be used for the test |
|
196 @type str |
|
197 @param workdir name of the working directory |
|
198 @type str |
|
199 @return dictionary containing the marker as key and the associated description |
|
200 as value |
|
201 @rtype dict |
|
202 """ |
|
203 return {} |
172 |
204 |
173 def createArguments(self, config): |
205 def createArguments(self, config): |
174 """ |
206 """ |
175 Public method to create the arguments needed to start the test process. |
207 Public method to create the arguments needed to start the test process. |
176 |
208 |