Debugger/DebugServer.py

changeset 6888
e5f03f779b00
parent 6645
ad476851d7e0
child 6892
c147620313c5
diff -r 4adc2c6978f2 -r e5f03f779b00 Debugger/DebugServer.py
--- a/Debugger/DebugServer.py	Wed Mar 20 19:23:12 2019 +0100
+++ b/Debugger/DebugServer.py	Wed Mar 20 19:41:04 2019 +0100
@@ -1313,22 +1313,31 @@
         self.debuggerInterface.remoteCompletion(text)
 
     def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase,
-                        clientType=""):
+                        clientType="", forProject=False, venvName=""):
         """
         Public method to prepare a new unittest run.
         
-        @param fn the filename to load (string)
-        @param tn the testname to load (string)
-        @param tfn the test function name to load tests from (string)
+        @param fn the filename to load
+        @type str
+        @param tn the testname to load
+        @type str
+        @param tfn the test function name to load tests from
+        @type str
         @param failed list of failed test, if only failed test should be run
-            (list of strings)
+        @type list of str
         @param cov flag indicating collection of coverage data is requested
-            (boolean)
+        @type bool
         @param covname filename to be used to assemble the coverage caches
-            filename (string)
+            filename
+        @type str
         @param coverase flag indicating erasure of coverage data is requested
-            (boolean)
-        @keyparam clientType client type to be used (string)
+        @type bool
+        @param clientType client type to be used
+        @type str
+        @param forProject flag indicating a project related action
+        @type bool
+        @param venvName name of a virtual environment
+        @type str
         """
         if clientType not in self.getSupportedLanguages():
             # a not supported client language was requested
@@ -1350,7 +1359,7 @@
                     self.__findLanguageForExtension(os.path.splitext(fn)[1]))
         except KeyError:
             self.__setClientType('Python3')    # assume it is a Python3 file
-        self.startClient(False)
+        self.startClient(False, forProject=forProject, venvName=venvName)
         
         self.debuggerInterface.remoteUTPrepare(
             fn, tn, tfn, failed, cov, covname, coverase)

eric ide

mercurial