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="", forProject=False, venvName="", |
1316 clientType="", forProject=False, venvName="", |
1317 syspath=None): |
1317 syspath=None, workdir="", discover=False, |
|
1318 discoveryStart=""): |
1318 """ |
1319 """ |
1319 Public method to prepare a new unittest run. |
1320 Public method to prepare a new unittest run. |
1320 |
1321 |
1321 @param fn the filename to load |
1322 @param fn the filename to load |
1322 @type str |
1323 @type str |
1340 @param venvName name of a virtual environment |
1341 @param venvName name of a virtual environment |
1341 @type str |
1342 @type str |
1342 @param syspath list of directories to be added to sys.path on the |
1343 @param syspath list of directories to be added to sys.path on the |
1343 remote side |
1344 remote side |
1344 @type list of str |
1345 @type list of str |
|
1346 @param workdir path name of the working directory |
|
1347 @type str |
|
1348 @param discover flag indicating to discover the tests automatically |
|
1349 @type bool |
|
1350 @param discoveryStart directory to start auto-discovery at |
|
1351 @type str |
1345 """ |
1352 """ |
1346 if clientType and clientType not in self.getSupportedLanguages(): |
1353 if clientType and clientType not in self.getSupportedLanguages(): |
1347 # a not supported client language was requested |
1354 # a not supported client language was requested |
1348 E5MessageBox.critical( |
1355 E5MessageBox.critical( |
1349 None, |
1356 None, |
1364 except KeyError: |
1371 except KeyError: |
1365 self.__setClientType('Python3') # assume it is a Python3 file |
1372 self.__setClientType('Python3') # assume it is a Python3 file |
1366 self.startClient(False, forProject=forProject, venvName=venvName) |
1373 self.startClient(False, forProject=forProject, venvName=venvName) |
1367 |
1374 |
1368 self.debuggerInterface.remoteUTPrepare( |
1375 self.debuggerInterface.remoteUTPrepare( |
1369 fn, tn, tfn, failed, cov, covname, coverase, syspath) |
1376 fn, tn, tfn, failed, cov, covname, coverase, syspath, workdir, |
|
1377 discover, discoveryStart) |
1370 self.debugging = False |
1378 self.debugging = False |
1371 self.running = True |
1379 self.running = True |
1372 |
1380 |
1373 def remoteUTRun(self): |
1381 def remoteUTRun(self): |
1374 """ |
1382 """ |