12 import os |
12 import os |
13 import re |
13 import re |
14 |
14 |
15 from PyQt6.QtCore import QProcess, pyqtSlot |
15 from PyQt6.QtCore import QProcess, pyqtSlot |
16 |
16 |
|
17 from eric7 import Preferences |
17 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader |
18 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader |
18 |
19 |
19 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory |
20 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory |
20 |
21 |
21 |
22 |
169 @param config configuration for the test discovery |
170 @param config configuration for the test discovery |
170 @type TestConfig |
171 @type TestConfig |
171 @param pythonpath list of directories to be added to the Python path |
172 @param pythonpath list of directories to be added to the Python path |
172 @type list of str |
173 @type list of str |
173 """ |
174 """ |
174 self.reader = EricJsonReader(name="Unittest Reader", parent=self) |
175 self.reader = EricJsonReader( |
|
176 name="Unittest Reader", |
|
177 interface=Preferences.getDebugger("NetworkInterface"), |
|
178 parent=self, |
|
179 ) |
175 self.reader.dataReceived.connect(self.__processData) |
180 self.reader.dataReceived.connect(self.__processData) |
176 |
181 |
177 super().discover(config, pythonpath) |
182 super().discover(config, pythonpath) |
178 |
183 |
179 def start(self, config, pythonpath): |
184 def start(self, config, pythonpath): |
183 @param config configuration for the test execution |
188 @param config configuration for the test execution |
184 @type TestConfig |
189 @type TestConfig |
185 @param pythonpath list of directories to be added to the Python path |
190 @param pythonpath list of directories to be added to the Python path |
186 @type list of str |
191 @type list of str |
187 """ |
192 """ |
188 self.reader = EricJsonReader(name="Unittest Reader", parent=self) |
193 self.reader = EricJsonReader( |
|
194 name="Unittest Reader", |
|
195 interface=Preferences.getDebugger("NetworkInterface"), |
|
196 parent=self, |
|
197 ) |
189 self.reader.dataReceived.connect(self.__processData) |
198 self.reader.dataReceived.connect(self.__processData) |
190 |
199 |
191 super().start(config, pythonpath) |
200 super().start(config, pythonpath) |
192 |
201 |
193 def startDebug(self, config, pythonpath, debugger): |
202 def startDebug(self, config, pythonpath, debugger): |
199 @param pythonpath list of directories to be added to the Python path |
208 @param pythonpath list of directories to be added to the Python path |
200 @type list of str |
209 @type list of str |
201 @param debugger refference to the debugger interface |
210 @param debugger refference to the debugger interface |
202 @type DebugUI |
211 @type DebugUI |
203 """ |
212 """ |
204 self.reader = EricJsonReader(name="Unittest Reader", parent=self) |
213 self.reader = EricJsonReader( |
|
214 name="Unittest Reader", |
|
215 interface=Preferences.getDebugger("NetworkInterface"), |
|
216 parent=self, |
|
217 ) |
205 self.reader.dataReceived.connect(self.__processData) |
218 self.reader.dataReceived.connect(self.__processData) |
206 |
219 |
207 super().startDebug(config, pythonpath, debugger) |
220 super().startDebug(config, pythonpath, debugger) |
208 |
221 |
209 def finished(self): |
222 def finished(self): |