From 0a7339d98fd94e1901d2fb0a3a06085d56ed7dad Mon Sep 17 00:00:00 2001 From: eleanorjboyd Date: Mon, 11 Sep 2023 15:25:38 -0700 Subject: [PATCH] logging --- src/client/testing/testController/common/server.ts | 2 ++ .../testing/testController/pytest/pytestExecutionAdapter.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/testing/testController/common/server.ts b/src/client/testing/testController/common/server.ts index d0a225ae5712..80e796f8b356 100644 --- a/src/client/testing/testController/common/server.ts +++ b/src/client/testing/testController/common/server.ts @@ -219,9 +219,11 @@ export class PythonTestServer implements ITestServer, Disposable { // Displays output to user and ensure the subprocess doesn't run into buffer overflow. result?.proc?.stdout?.on('data', (data) => { spawnOptions?.outputChannel?.append(data.toString()); + console.log(data.toString()); }); result?.proc?.stderr?.on('data', (data) => { spawnOptions?.outputChannel?.append(data.toString()); + console.log(data.toString()); }); result?.proc?.on('exit', (code, signal) => { // if the child has testIds then this is a run request diff --git a/src/client/testing/testController/pytest/pytestExecutionAdapter.ts b/src/client/testing/testController/pytest/pytestExecutionAdapter.ts index 33d87b9077a5..2912e9c202b8 100644 --- a/src/client/testing/testController/pytest/pytestExecutionAdapter.ts +++ b/src/client/testing/testController/pytest/pytestExecutionAdapter.ts @@ -130,7 +130,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter { if (debugBool && !testArgs.some((a) => a.startsWith('--capture') || a === '-s')) { testArgs.push('--capture', 'no'); } - traceLog(`Running PYTEST execution for the following test ids: ${testIds}`); + console.log(`Running PYTEST execution for the following test ids: ${testIds}`); const pytestRunTestIdsPort = await utils.startTestIdServer(testIds); if (spawnOptions.extraVariables) @@ -170,9 +170,11 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter { // Displays output to user and ensure the subprocess doesn't run into buffer overflow. result?.proc?.stdout?.on('data', (data) => { this.outputChannel?.append(data.toString()); + console.log(data.toString()); }); result?.proc?.stderr?.on('data', (data) => { this.outputChannel?.append(data.toString()); + console.log(data.toString()); }); result?.proc?.on('exit', (code, signal) => {