Skip to content

Commit 4f276d2

Browse files
author
Kartik Raj
authored
Correctly log unit test error logs (#10120)
* Correctly log unit test error logs * Remove "any" * Use traceInfo
1 parent b061277 commit 4f276d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client/testing/unittest/runner.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { inject, injectable } from 'inversify';
44
import * as path from 'path';
55
import { EXTENSION_ROOT_DIR } from '../../common/constants';
6-
import { traceError } from '../../common/logger';
6+
import { traceError, traceInfo } from '../../common/logger';
77
import { IDisposableRegistry } from '../../common/types';
88
import { createDeferred, Deferred } from '../../common/utils/async';
99
import { noop } from '../../common/utils/misc';
@@ -74,8 +74,8 @@ export class TestManagerRunner implements ITestManagerRunner {
7474
options.tests.summary.skipped = 0;
7575
let failFast = false;
7676
const testLauncherFile = path.join(EXTENSION_ROOT_DIR, 'pythonFiles', 'visualstudio_py_testlauncher.py');
77-
this.server.on('error', (message: string, ...data: string[]) => traceError(`${message} ${data.join(' ')}`));
78-
this.server.on('log', noop);
77+
this.server.on('error', traceError);
78+
this.server.on('log', (message: string, ...data: string[]) => traceInfo(`${message} ${data.join(' ')}`));
7979
this.server.on('connect', noop);
8080
this.server.on('start', noop);
8181
this.server.on('result', (data: ITestData) => {

0 commit comments

Comments
 (0)