src/eric7/Testing/Interfaces/PytestExecutor.py

branch
eric7-maintenance
changeset 10941
07cad049002c
parent 10694
f46c1e224e8a
parent 10928
46651e194fbe
child 11118
967a88a16a21
equal deleted inserted replaced
10893:ea32acb9764c 10941:07cad049002c
11 import json 11 import json
12 import os 12 import os
13 13
14 from PyQt6.QtCore import QProcess, pyqtSlot 14 from PyQt6.QtCore import QProcess, pyqtSlot
15 15
16 from eric7 import Preferences
16 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader 17 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader
17 18
18 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory 19 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory
19 20
20 21
203 @param config configuration for the test discovery 204 @param config configuration for the test discovery
204 @type TestConfig 205 @type TestConfig
205 @param pythonpath list of directories to be added to the Python path 206 @param pythonpath list of directories to be added to the Python path
206 @type list of str 207 @type list of str
207 """ 208 """
208 self.reader = EricJsonReader(name="Pytest Reader", parent=self) 209 self.reader = EricJsonReader(
210 name="Pytest Reader",
211 interface=Preferences.getDebugger("NetworkInterface"),
212 parent=self,
213 )
209 self.reader.dataReceived.connect(self.__processData) 214 self.reader.dataReceived.connect(self.__processData)
210 215
211 self.__config = config 216 self.__config = config
212 217
213 pythonpath.insert(0, os.path.abspath(config.discoveryStart)) 218 pythonpath.insert(0, os.path.abspath(config.discoveryStart))
222 @param config configuration for the test execution 227 @param config configuration for the test execution
223 @type TestConfig 228 @type TestConfig
224 @param pythonpath list of directories to be added to the Python path 229 @param pythonpath list of directories to be added to the Python path
225 @type list of str 230 @type list of str
226 """ 231 """
227 self.reader = EricJsonReader(name="Pytest Reader", parent=self) 232 self.reader = EricJsonReader(
233 name="Pytest Reader",
234 interface=Preferences.getDebugger("NetworkInterface"),
235 parent=self,
236 )
228 self.reader.dataReceived.connect(self.__processData) 237 self.reader.dataReceived.connect(self.__processData)
229 238
230 self.__config = config 239 self.__config = config
231 240
232 if config.discoveryStart: 241 if config.discoveryStart:
252 @param pythonpath list of directories to be added to the Python path 261 @param pythonpath list of directories to be added to the Python path
253 @type list of str 262 @type list of str
254 @param debugger refference to the debugger interface 263 @param debugger refference to the debugger interface
255 @type DebugUI 264 @type DebugUI
256 """ 265 """
257 self.reader = EricJsonReader(name="Pytest Reader", parent=self) 266 self.reader = EricJsonReader(
267 name="Pytest Reader",
268 interface=Preferences.getDebugger("NetworkInterface"),
269 parent=self,
270 )
258 self.reader.dataReceived.connect(self.__processData) 271 self.reader.dataReceived.connect(self.__processData)
259 272
260 self.__config = config 273 self.__config = config
261 274
262 if config.discoveryStart: 275 if config.discoveryStart:

eric ide

mercurial