9 |
9 |
10 import contextlib |
10 import contextlib |
11 import json |
11 import json |
12 import os |
12 import os |
13 |
13 |
14 from PyQt6.QtCore import pyqtSlot, QProcess |
14 from PyQt6.QtCore import QProcess, pyqtSlot |
15 |
15 |
16 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader |
16 from eric7.EricNetwork.EricJsonStreamReader import EricJsonReader |
17 |
17 |
18 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory |
18 from .TestExecutorBase import TestExecutorBase, TestResult, TestResultCategory |
19 |
19 |
199 @param config configuration for the test execution |
199 @param config configuration for the test execution |
200 @type TestConfig |
200 @type TestConfig |
201 @param pythonpath list of directories to be added to the Python path |
201 @param pythonpath list of directories to be added to the Python path |
202 @type list of str |
202 @type list of str |
203 """ |
203 """ |
204 self.reader = EricJsonReader(name="Unittest Reader", parent=self) |
204 self.reader = EricJsonReader(name="Pytest Reader", parent=self) |
205 self.reader.dataReceived.connect(self.__processData) |
205 self.reader.dataReceived.connect(self.__processData) |
206 |
206 |
207 self.__config = config |
207 self.__config = config |
208 |
208 |
209 if config.discoveryStart: |
209 if config.discoveryStart: |