Debugger/DebuggerInterfacePython.py

changeset 6892
c147620313c5
parent 6848
7682182a0f0f
child 6894
df83ac87e0db
equal deleted inserted replaced
6891:93f82da09f22 6892:c147620313c5
925 """ 925 """
926 self.__sendJsonCommand("RequestCompletion", { 926 self.__sendJsonCommand("RequestCompletion", {
927 "text": text, 927 "text": text,
928 }) 928 })
929 929
930 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase): 930 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase,
931 syspath):
931 """ 932 """
932 Public method to prepare a new unittest run. 933 Public method to prepare a new unittest run.
933 934
934 @param fn the filename to load (string) 935 @param fn name of file to load
935 @param tn the testname to load (string) 936 @type str
936 @param tfn the test function name to load tests from (string) 937 @param tn name of test to load
938 @type str
939 @param tfn test function name to load tests from
940 @type str
937 @param failed list of failed test, if only failed test should be run 941 @param failed list of failed test, if only failed test should be run
938 (list of strings) 942 @type list of str
939 @param cov flag indicating collection of coverage data is requested 943 @param cov flag indicating collection of coverage data is requested
940 (boolean) 944 @type bool
941 @param covname filename to be used to assemble the coverage caches 945 @param covname name of file to be used to assemble the coverage caches
942 filename (string) 946 filename
947 @type str
943 @param coverase flag indicating erasure of coverage data is requested 948 @param coverase flag indicating erasure of coverage data is requested
944 (boolean) 949 @type bool
950 @param syspath list of directories to be added to sys.path on the
951 remote side
952 @type list of str
945 """ 953 """
946 self.__scriptName = os.path.abspath(fn) 954 self.__scriptName = os.path.abspath(fn)
947 955
948 fn = self.translate(os.path.abspath(fn), False) 956 fn = self.translate(os.path.abspath(fn), False)
949 self.__sendJsonCommand("RequestUTPrepare", { 957 self.__sendJsonCommand("RequestUTPrepare", {
952 "testfunctionname": tfn, 960 "testfunctionname": tfn,
953 "failed": failed, 961 "failed": failed,
954 "coverage": cov, 962 "coverage": cov,
955 "coveragefile": covname, 963 "coveragefile": covname,
956 "coverageerase": coverase, 964 "coverageerase": coverase,
965 "syspath": [] if syspath is None else syspath,
957 }) 966 })
958 967
959 def remoteUTRun(self): 968 def remoteUTRun(self):
960 """ 969 """
961 Public method to start a unittest run. 970 Public method to start a unittest run.

eric ide

mercurial