src/eric7/Testing/Interfaces/UnittestExecutor.py

branch
eric7
changeset 10415
af9a6dac2611
parent 10405
df7e1694d0eb
child 10425
0badf8f80d7c
--- a/src/eric7/Testing/Interfaces/UnittestExecutor.py	Sat Dec 16 15:21:11 2023 +0100
+++ b/src/eric7/Testing/Interfaces/UnittestExecutor.py	Sat Dec 16 16:30:55 2023 +0100
@@ -186,6 +186,22 @@
 
         super().start(config, pythonpath)
 
+    def startDebug(self, config, pythonpath, debugger):
+        """
+        Public method to start the test run with debugger support.
+
+        @param config configuration for the test execution
+        @type TestConfig
+        @param pythonpath list of directories to be added to the Python path
+        @type list of str
+        @param debugger refference to the debugger interface
+        @type DebugUI
+        """
+        self.reader = EricJsonReader(name="Unittest Reader", parent=self)
+        self.reader.dataReceived.connect(self.__processData)
+
+        super().startDebug(config, pythonpath, debugger)
+
     def finished(self):
         """
         Public method handling the unit test process been finished.
@@ -198,6 +214,8 @@
         output = self.readAllOutput()
         self.testFinished.emit([], output)
 
+        super().finished()
+
     @pyqtSlot(object)
     def __processData(self, data):
         """

eric ide

mercurial