Debugger/DebuggerInterfacePython.py

changeset 6904
3f35037a08d4
parent 6901
f2c774c8db7e
diff -r 0d4e1033731b -r 3f35037a08d4 Debugger/DebuggerInterfacePython.py
--- a/Debugger/DebuggerInterfacePython.py	Tue Mar 26 19:39:42 2019 +0100
+++ b/Debugger/DebuggerInterfacePython.py	Wed Mar 27 20:09:37 2019 +0100
@@ -946,7 +946,8 @@
         })
     
     def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase,
-                        syspath, workdir, discover, discoveryStart, testCases):
+                        syspath, workdir, discover, discoveryStart, testCases,
+                        debug):
         """
         Public method to prepare a new unittest run.
         
@@ -976,6 +977,8 @@
         @type str
         @param testCases list of test cases to be loaded
         @type list of str
+        @param debug flag indicating to run unittest with debugging
+        @type bool
         """
         if fn:
             self.__scriptName = os.path.abspath(fn)
@@ -997,13 +1000,24 @@
             "discover": discover,
             "discoverystart": discoveryStart,
             "testcases": [] if testCases is None else testCases,
+            "debug": debug,
         })
     
-    def remoteUTRun(self):
+    def remoteUTRun(self, debug, failfast):
         """
         Public method to start a unittest run.
+        
+        @param debug flag indicating to run unittest with debugging
+        @type bool
+        @param failfast flag indicating to stop at the first error
+        @type bool
         """
-        self.__sendJsonCommand("RequestUTRun", {})
+        if debug:
+            self.__autoContinue = True
+        self.__sendJsonCommand("RequestUTRun", {
+            "debug": debug,
+            "failfast": failfast,
+        })
     
     def remoteUTStop(self):
         """
@@ -1224,7 +1238,7 @@
                 params["count"], params["exception"], params["message"])
         
         elif method == "ResponseUTFinished":
-            self.debugServer.clientUtFinished()
+            self.debugServer.clientUtFinished(params["status"])
         
         elif method == "ResponseUTStartTest":
             self.debugServer.clientUtStartTest(

eric ide

mercurial