Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Sep 12, 2023
1 parent 1ddf542 commit 7bfbf45
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/client/testing/testController/common/resultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ export class PythonResultResolver implements ITestResultResolver {
) {
const grabTestItem = this.runIdToTestItem.get(keyTemp);
const grabVSid = this.runIdToVSid.get(keyTemp);
console.log('grabTestItem', grabTestItem);
console.log('grabVSid', grabVSid);
console.log('key', keyTemp);
if (grabTestItem !== undefined) {
testCases.forEach((indiItem) => {
if (indiItem.id === grabVSid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
if (debugBool && !testArgs.some((a) => a.startsWith('--capture') || a === '-s')) {
testArgs.push('--capture', 'no');
}
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,11 +169,9 @@ 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
7 changes: 0 additions & 7 deletions src/test/testing/common/testingAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ suite('End to End Tests: test adapters', () => {
// 2. Confirm no errors
assert.strictEqual(actualData.error, undefined, "Expected no errors in 'error' field");
// 3. Confirm tests are found
console.log('actual data', actualData.tests);
assert.ok(actualData.tests, 'Expected tests to be present');
});
});
Expand Down Expand Up @@ -249,7 +248,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
actualData = data;
return Promise.resolve();
});
Expand Down Expand Up @@ -293,7 +291,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
traceLog(`resolveExecution ${data}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status, can be subtest success or failure
Expand Down Expand Up @@ -346,7 +343,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
actualData = data;
return Promise.resolve();
});
Expand Down Expand Up @@ -397,7 +393,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'success', "Expected status to be 'success'");
Expand Down Expand Up @@ -448,7 +443,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'error', "Expected status to be 'error'");
Expand Down Expand Up @@ -497,7 +491,6 @@ suite('End to End Tests: test adapters', () => {
resultResolver
.setup((x) => x.resolveExecution(typeMoq.It.isAny(), typeMoq.It.isAny()))
.returns((data) => {
console.log(`resolveExecution ${JSON.stringify(data)}`);
// do the following asserts for each time resolveExecution is called, should be called once per test.
// 1. Check the status is "success"
assert.strictEqual(data.status, 'error', "Expected status to be 'error'");
Expand Down

0 comments on commit 7bfbf45

Please sign in to comment.