diff --git a/src/client/testing/testController/common/server.ts b/src/client/testing/testController/common/server.ts index 699f7f754122..5de0459c5ee3 100644 --- a/src/client/testing/testController/common/server.ts +++ b/src/client/testing/testController/common/server.ts @@ -189,6 +189,7 @@ export class PythonTestServer implements ITestServer, Disposable { resource: options.workspaceFolder, }; const execService = await this.executionFactory.createActivatedEnvironment(creationOptions); + traceInfo(`Test Port Number: ${this.getPort()}`); // Add the generated UUID to the data to be sent (expecting to receive it back). // first check if we have testIds passed in (in case of execution) and diff --git a/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts b/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts index c03baeae0421..c437ad174aef 100644 --- a/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts +++ b/src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts @@ -75,7 +75,7 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter { }, outputChannel: this.outputChannel, }; - + traceInfo(`Test Port Number: ${ this.testServer.getPort().toString()}`); // Create the Python environment in which to execute the command. const creationOptions: ExecutionFactoryCreateWithEnvironmentOptions = { allowEnvironmentFetchExceptions: false, diff --git a/src/client/testing/testController/pytest/pytestExecutionAdapter.ts b/src/client/testing/testController/pytest/pytestExecutionAdapter.ts index 085af40375d4..bafb94927e24 100644 --- a/src/client/testing/testController/pytest/pytestExecutionAdapter.ts +++ b/src/client/testing/testController/pytest/pytestExecutionAdapter.ts @@ -115,6 +115,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter { outputChannel: this.outputChannel, stdinStr: testIds.toString(), }; + traceInfo(`Test Port Number: ${ this.testServer.getPort().toString()}`); // Create the Python environment in which to execute the command. const creationOptions: ExecutionFactoryCreateWithEnvironmentOptions = { @@ -139,6 +140,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter { } const pytestRunTestIdsPort = await utils.startTestIdServer(testIds); + traceInfo(`Test Ids Port Number: ${pytestRunTestIdsPort.toString()}`); if (spawnOptions.extraVariables) spawnOptions.extraVariables.RUN_TEST_IDS_PORT = pytestRunTestIdsPort.toString(); diff --git a/src/client/testing/testController/unittest/testExecutionAdapter.ts b/src/client/testing/testController/unittest/testExecutionAdapter.ts index 9da0872ef601..f5fb63a6bee3 100644 --- a/src/client/testing/testController/unittest/testExecutionAdapter.ts +++ b/src/client/testing/testController/unittest/testExecutionAdapter.ts @@ -91,6 +91,7 @@ export class UnittestTestExecutionAdapter implements ITestExecutionAdapter { traceLog(`Running UNITTEST execution for the following test ids: ${testIds}`); const runTestIdsPort = await startTestIdServer(testIds); + traceInfo(`Test Ids Port Number: ${runTestIdsPort.toString()}`); await this.testServer.sendCommand(options, runTestIdsPort.toString(), runInstance, testIds, () => { deferredTillEOT?.resolve();