eric7/Unittest/Interfaces/UTExecutorBase.py

branch
unittest
changeset 9064
339bb8c8007d
parent 9063
f1d7dd7ae471
diff -r f1d7dd7ae471 -r 339bb8c8007d eric7/Unittest/Interfaces/UTExecutorBase.py
--- a/eric7/Unittest/Interfaces/UTExecutorBase.py	Sat May 14 18:56:52 2022 +0200
+++ b/eric7/Unittest/Interfaces/UTExecutorBase.py	Sun May 15 18:08:31 2022 +0200
@@ -57,6 +57,7 @@
     testFilename: str               # name of the test script
     testName: str                   # name of the test function
     failFast: bool                  # stop on first fail
+    failedOnly: bool                # run failed tests only
     collectCoverage: bool           # coverage collection flag
     eraseCoverage: bool             # erase coverage data first
 
@@ -77,6 +78,8 @@
     @signal testFinished(list, str) emitted when the test has finished.
         The elements are the list of test results and the captured output
         of the test worker (if any).
+    @signal testRunAboutToBeStarted() emitted just before the test run will
+        be started.
     @signal testRunFinished(int, float) emitted when the test run has finished.
         The elements are the number of tests run and the duration in seconds
     @signal stop() emitted when the test process is being stopped.
@@ -88,6 +91,7 @@
     startTest = pyqtSignal(tuple)
     testResult = pyqtSignal(UTTestResult)
     testFinished = pyqtSignal(list, str)
+    testRunAboutToBeStarted = pyqtSignal()
     testRunFinished = pyqtSignal(int, float)
     stop = pyqtSignal()
     coverageDataSaved = pyqtSignal(str)
@@ -204,6 +208,7 @@
         )
         self.__process = self._prepareProcess(workDir, pythonpath)
         testArgs = self.createArguments(config)
+        self.testRunAboutToBeStarted.emit()
         self.__process.start(config.interpreter, testArgs)
         running = self.__process.waitForStarted()
         if not running:

eric ide

mercurial