1311 @param text the text to be completed (string) |
1311 @param text the text to be completed (string) |
1312 """ |
1312 """ |
1313 self.debuggerInterface.remoteCompletion(text) |
1313 self.debuggerInterface.remoteCompletion(text) |
1314 |
1314 |
1315 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase, |
1315 def remoteUTPrepare(self, fn, tn, tfn, failed, cov, covname, coverase, |
1316 clientType=""): |
1316 clientType="", forProject=False, venvName=""): |
1317 """ |
1317 """ |
1318 Public method to prepare a new unittest run. |
1318 Public method to prepare a new unittest run. |
1319 |
1319 |
1320 @param fn the filename to load (string) |
1320 @param fn the filename to load |
1321 @param tn the testname to load (string) |
1321 @type str |
1322 @param tfn the test function name to load tests from (string) |
1322 @param tn the testname to load |
|
1323 @type str |
|
1324 @param tfn the test function name to load tests from |
|
1325 @type str |
1323 @param failed list of failed test, if only failed test should be run |
1326 @param failed list of failed test, if only failed test should be run |
1324 (list of strings) |
1327 @type list of str |
1325 @param cov flag indicating collection of coverage data is requested |
1328 @param cov flag indicating collection of coverage data is requested |
1326 (boolean) |
1329 @type bool |
1327 @param covname filename to be used to assemble the coverage caches |
1330 @param covname filename to be used to assemble the coverage caches |
1328 filename (string) |
1331 filename |
|
1332 @type str |
1329 @param coverase flag indicating erasure of coverage data is requested |
1333 @param coverase flag indicating erasure of coverage data is requested |
1330 (boolean) |
1334 @type bool |
1331 @keyparam clientType client type to be used (string) |
1335 @param clientType client type to be used |
|
1336 @type str |
|
1337 @param forProject flag indicating a project related action |
|
1338 @type bool |
|
1339 @param venvName name of a virtual environment |
|
1340 @type str |
1332 """ |
1341 """ |
1333 if clientType not in self.getSupportedLanguages(): |
1342 if clientType not in self.getSupportedLanguages(): |
1334 # a not supported client language was requested |
1343 # a not supported client language was requested |
1335 E5MessageBox.critical( |
1344 E5MessageBox.critical( |
1336 None, |
1345 None, |
1348 else: |
1357 else: |
1349 self.__setClientType( |
1358 self.__setClientType( |
1350 self.__findLanguageForExtension(os.path.splitext(fn)[1])) |
1359 self.__findLanguageForExtension(os.path.splitext(fn)[1])) |
1351 except KeyError: |
1360 except KeyError: |
1352 self.__setClientType('Python3') # assume it is a Python3 file |
1361 self.__setClientType('Python3') # assume it is a Python3 file |
1353 self.startClient(False) |
1362 self.startClient(False, forProject=forProject, venvName=venvName) |
1354 |
1363 |
1355 self.debuggerInterface.remoteUTPrepare( |
1364 self.debuggerInterface.remoteUTPrepare( |
1356 fn, tn, tfn, failed, cov, covname, coverase) |
1365 fn, tn, tfn, failed, cov, covname, coverase) |
1357 self.debugging = False |
1366 self.debugging = False |
1358 self.running = True |
1367 self.running = True |