Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Sep 11, 2023
1 parent cc18eae commit 0a7339d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/client/testing/testController/common/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 0a7339d

Please sign in to comment.