src/eric7/Testing/Interfaces/UnittestExecutor.py

branch
eric7
changeset 10415
af9a6dac2611
parent 10405
df7e1694d0eb
child 10425
0badf8f80d7c
equal deleted inserted replaced
10414:7c6bd2366602 10415:af9a6dac2611
184 self.reader = EricJsonReader(name="Unittest Reader", parent=self) 184 self.reader = EricJsonReader(name="Unittest Reader", parent=self)
185 self.reader.dataReceived.connect(self.__processData) 185 self.reader.dataReceived.connect(self.__processData)
186 186
187 super().start(config, pythonpath) 187 super().start(config, pythonpath)
188 188
189 def startDebug(self, config, pythonpath, debugger):
190 """
191 Public method to start the test run with debugger support.
192
193 @param config configuration for the test execution
194 @type TestConfig
195 @param pythonpath list of directories to be added to the Python path
196 @type list of str
197 @param debugger refference to the debugger interface
198 @type DebugUI
199 """
200 self.reader = EricJsonReader(name="Unittest Reader", parent=self)
201 self.reader.dataReceived.connect(self.__processData)
202
203 super().startDebug(config, pythonpath, debugger)
204
189 def finished(self): 205 def finished(self):
190 """ 206 """
191 Public method handling the unit test process been finished. 207 Public method handling the unit test process been finished.
192 208
193 This method should read the results (if necessary) and emit the signal 209 This method should read the results (if necessary) and emit the signal
195 """ 211 """
196 self.reader.close() 212 self.reader.close()
197 213
198 output = self.readAllOutput() 214 output = self.readAllOutput()
199 self.testFinished.emit([], output) 215 self.testFinished.emit([], output)
216
217 super().finished()
200 218
201 @pyqtSlot(object) 219 @pyqtSlot(object)
202 def __processData(self, data): 220 def __processData(self, data):
203 """ 221 """
204 Private slot to process the received data. 222 Private slot to process the received data.

eric ide

mercurial