90 @return flag indicating the availability of coverage functionality |
90 @return flag indicating the availability of coverage functionality |
91 @rtype bool |
91 @rtype bool |
92 """ |
92 """ |
93 return True |
93 return True |
94 |
94 |
|
95 def supportsPatterns(self, interpreter): |
|
96 """ |
|
97 Public method to indicate the support for test filtering using test name |
|
98 patterns or a test name pattern expression. |
|
99 |
|
100 @param interpreter interpreter to be used for the test |
|
101 @type str |
|
102 @return flag indicating support of markers |
|
103 @rtype bool |
|
104 """ |
|
105 return True |
|
106 |
95 def createArguments(self, config): |
107 def createArguments(self, config): |
96 """ |
108 """ |
97 Public method to create the arguments needed to start the test process. |
109 Public method to create the arguments needed to start the test process. |
98 |
110 |
99 @param config configuration for the test execution |
111 @param config configuration for the test execution |
126 args.append("--cover-erase") |
138 args.append("--cover-erase") |
127 if config.coverageFile: |
139 if config.coverageFile: |
128 args.append("--cover-file") |
140 args.append("--cover-file") |
129 args.append(config.coverageFile) |
141 args.append(config.coverageFile) |
130 |
142 |
|
143 if config.testNamePattern: |
|
144 args.append("--pattern") |
|
145 args.append(config.testNamePattern) |
|
146 |
131 if config.failedOnly: |
147 if config.failedOnly: |
132 args.append("--failed-only") |
148 args.append("--failed-only") |
133 if config.testFilename: |
149 if config.testFilename: |
134 args.append(config.testFilename) |
150 args.append(config.testFilename) |
135 args.extend(self.__testWidget.getFailedTests()) |
151 args.extend(self.__testWidget.getFailedTests()) |
136 elif config.testFilename: |
152 elif config.testFilename: |
137 args.append(config.testFilename) |
153 args.append(config.testFilename) |
138 args.append(config.testName if config.testName else "suite") |
154 args.append(config.testName if config.testName else "@NONE@") |
|
155 # @NONE@ is just a marker for no test name given |
139 |
156 |
140 return args |
157 return args |
141 |
158 |
142 def start(self, config, pythonpath): |
159 def start(self, config, pythonpath): |
143 """ |
160 """ |