@@ -12,6 +12,7 @@ import { ITestRunner, ITestDebugLauncher, IUnitTestSocketServer, LaunchOptions,
12
12
import { TEST_OUTPUT_CHANNEL } from '../../constants' ;
13
13
import { getTestCaseNodes } from '../common/testItemUtilities' ;
14
14
import { ITestRun , ITestsRunner , TestData , TestRunInstanceOptions , TestRunOptions } from '../common/types' ;
15
+ import { fixLogLines } from '../common/utils' ;
15
16
import { getTestRunArgs } from './arguments' ;
16
17
17
18
interface ITestData {
@@ -102,7 +103,7 @@ export class UnittestRunner implements ITestsRunner {
102
103
if ( data . outcome === 'passed' || data . outcome === 'failed-expected' ) {
103
104
const text = `${ rawTestCase . rawId } Passed\r\n` ;
104
105
runInstance . passed ( testCase ) ;
105
- runInstance . appendOutput ( text ) ;
106
+ runInstance . appendOutput ( fixLogLines ( text ) ) ;
106
107
counts . passed += 1 ;
107
108
} else if ( data . outcome === 'failed' || data . outcome === 'passed-unexpected' ) {
108
109
const traceback = data . traceback
@@ -116,7 +117,7 @@ export class UnittestRunner implements ITestsRunner {
116
117
}
117
118
118
119
runInstance . failed ( testCase , message ) ;
119
- runInstance . appendOutput ( text ) ;
120
+ runInstance . appendOutput ( fixLogLines ( text ) ) ;
120
121
counts . failed += 1 ;
121
122
if ( failFast ) {
122
123
stopTesting = true ;
@@ -133,7 +134,7 @@ export class UnittestRunner implements ITestsRunner {
133
134
}
134
135
135
136
runInstance . errored ( testCase , message ) ;
136
- runInstance . appendOutput ( text ) ;
137
+ runInstance . appendOutput ( fixLogLines ( text ) ) ;
137
138
counts . errored += 1 ;
138
139
if ( failFast ) {
139
140
stopTesting = true ;
@@ -144,11 +145,11 @@ export class UnittestRunner implements ITestsRunner {
144
145
: '' ;
145
146
const text = `${ rawTestCase . rawId } Skipped: ${ data . message } \r\n${ traceback } \r\n` ;
146
147
runInstance . skipped ( testCase ) ;
147
- runInstance . appendOutput ( text ) ;
148
+ runInstance . appendOutput ( fixLogLines ( text ) ) ;
148
149
counts . skipped += 1 ;
149
150
} else {
150
151
const text = `Unknown outcome type for test ${ rawTestCase . rawId } : ${ data . outcome } ` ;
151
- runInstance . appendOutput ( text ) ;
152
+ runInstance . appendOutput ( fixLogLines ( text ) ) ;
152
153
const message = new TestMessage ( text ) ;
153
154
if ( testCase . uri && testCase . range ) {
154
155
message . location = new Location ( testCase . uri , testCase . range ) ;
0 commit comments