Debugger/DebuggerInterfacePython.py

changeset 6894
df83ac87e0db
parent 6892
c147620313c5
child 6901
f2c774c8db7e
--- a/Debugger/DebuggerInterfacePython.py	Fri Mar 22 19:31:56 2019 +0100
+++ b/Debugger/DebuggerInterfacePython.py	Sat Mar 23 16:45:26 2019 +0100
@@ -928,7 +928,7 @@
         })
     
     def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase,
-                        syspath):
+                        syspath, workdir, discover, discoveryStart):
         """
         Public method to prepare a new unittest run.
         
@@ -950,10 +950,20 @@
         @param syspath list of directories to be added to sys.path on the
             remote side
         @type list of str
+        @param workdir path name of the working directory
+        @type str
+        @param discover flag indicating to discover the tests automatically
+        @type bool
+        @param discoveryStart directory to start auto-discovery at
+        @type str
         """
-        self.__scriptName = os.path.abspath(fn)
+        if fn:
+            self.__scriptName = os.path.abspath(fn)
+            
+            fn = self.translate(os.path.abspath(fn), False)
+        else:
+            self.__scriptName = "unittest discover"
         
-        fn = self.translate(os.path.abspath(fn), False)
         self.__sendJsonCommand("RequestUTPrepare", {
             "filename": fn,
             "testname": tn,
@@ -963,6 +973,9 @@
             "coveragefile": covname,
             "coverageerase": coverase,
             "syspath": [] if syspath is None else syspath,
+            "workdir": workdir,
+            "discover": discover,
+            "discoverystart": discoveryStart,
         })
     
     def remoteUTRun(self):

eric ide

mercurial