@@ -23,19 +23,19 @@ class CoderReporter implements Reporter {
23
23
24
24
onBegin ( config : FullConfig , suite : Suite ) {
25
25
this . config = config ;
26
- console . log ( `==> Running ${ suite . allTests ( ) . length } tests` ) ;
26
+ console . info ( `==> Running ${ suite . allTests ( ) . length } tests` ) ;
27
27
}
28
28
29
29
onTestBegin ( test : TestCase ) {
30
30
this . testOutput . set ( test . id , [ ] ) ;
31
- console . log ( `==> Starting test ${ test . title } ` ) ;
31
+ console . info ( `==> Starting test ${ test . title } ` ) ;
32
32
}
33
33
34
34
onStdOut ( chunk : string , test ?: TestCase , _ ?: TestResult ) : void {
35
35
// If there's no associated test, just print it now
36
36
if ( ! test ) {
37
37
for ( const line of logLines ( chunk ) ) {
38
- console . log ( `[stdout] ${ line } ` ) ;
38
+ console . info ( `[stdout] ${ line } ` ) ;
39
39
}
40
40
return ;
41
41
}
@@ -58,12 +58,12 @@ class CoderReporter implements Reporter {
58
58
async onTestEnd ( test : TestCase , result : TestResult ) {
59
59
try {
60
60
if ( test . expectedStatus === "skipped" ) {
61
- console . log ( `==> Skipping test ${ test . title } ` ) ;
61
+ console . info ( `==> Skipping test ${ test . title } ` ) ;
62
62
this . skippedCount ++ ;
63
63
return ;
64
64
}
65
65
66
- console . log ( `==> Finished test ${ test . title } : ${ result . status } ` ) ;
66
+ console . info ( `==> Finished test ${ test . title } : ${ result . status } ` ) ;
67
67
68
68
if ( result . status === "passed" ) {
69
69
this . passedCount ++ ;
@@ -82,24 +82,24 @@ class CoderReporter implements Reporter {
82
82
const outputFile = `test-results/debug-pprof-goroutine-${ fsTestTitle } .txt` ;
83
83
await exportDebugPprof ( outputFile ) ;
84
84
85
- console . log ( `Data from pprof has been saved to ${ outputFile } ` ) ;
86
- console . log ( "==> Output" ) ;
85
+ console . info ( `Data from pprof has been saved to ${ outputFile } ` ) ;
86
+ console . info ( "==> Output" ) ;
87
87
const output = this . testOutput . get ( test . id ) ! ;
88
88
for ( const [ target , chunk ] of output ) {
89
89
target . write ( `${ chunk . replace ( / \n $ / g, "" ) } \n` ) ;
90
90
}
91
91
92
92
if ( result . errors . length > 0 ) {
93
- console . log ( "==> Errors" ) ;
93
+ console . info ( "==> Errors" ) ;
94
94
for ( const error of result . errors ) {
95
95
reportError ( error ) ;
96
96
}
97
97
}
98
98
99
99
if ( result . attachments . length > 0 ) {
100
- console . log ( "==> Attachments" ) ;
100
+ console . info ( "==> Attachments" ) ;
101
101
for ( const attachment of result . attachments ) {
102
- console . log ( attachment ) ;
102
+ console . info ( attachment ) ;
103
103
}
104
104
}
105
105
} finally {
@@ -108,26 +108,26 @@ class CoderReporter implements Reporter {
108
108
}
109
109
110
110
onEnd ( result : FullResult ) {
111
- console . log ( `==> Tests ${ result . status } ` ) ;
111
+ console . info ( `==> Tests ${ result . status } ` ) ;
112
112
if ( ! enterpriseLicense ) {
113
- console . log (
113
+ console . info (
114
114
"==> Enterprise tests were skipped, because no license was provided" ,
115
115
) ;
116
116
}
117
- console . log ( `${ this . passedCount } passed` ) ;
117
+ console . info ( `${ this . passedCount } passed` ) ;
118
118
if ( this . skippedCount > 0 ) {
119
- console . log ( `${ this . skippedCount } skipped` ) ;
119
+ console . info ( `${ this . skippedCount } skipped` ) ;
120
120
}
121
121
if ( this . failedTests . length > 0 ) {
122
- console . log ( `${ this . failedTests . length } failed` ) ;
122
+ console . info ( `${ this . failedTests . length } failed` ) ;
123
123
for ( const test of this . failedTests ) {
124
- console . log ( ` ${ test . location . file } › ${ test . title } ` ) ;
124
+ console . info ( ` ${ test . location . file } › ${ test . title } ` ) ;
125
125
}
126
126
}
127
127
if ( this . timedOutTests . length > 0 ) {
128
- console . log ( `${ this . timedOutTests . length } timed out` ) ;
128
+ console . info ( `${ this . timedOutTests . length } timed out` ) ;
129
129
for ( const test of this . timedOutTests ) {
130
- console . log ( ` ${ test . location . file } › ${ test . title } ` ) ;
130
+ console . info ( ` ${ test . location . file } › ${ test . title } ` ) ;
131
131
}
132
132
}
133
133
}
@@ -157,16 +157,16 @@ const exportDebugPprof = async (outputFile: string) => {
157
157
158
158
const reportError = ( error : TestError ) => {
159
159
if ( error . location ) {
160
- console . log ( `${ error . location . file } :${ error . location . line } :` ) ;
160
+ console . info ( `${ error . location . file } :${ error . location . line } :` ) ;
161
161
}
162
162
if ( error . snippet ) {
163
- console . log ( error . snippet ) ;
163
+ console . info ( error . snippet ) ;
164
164
}
165
165
166
166
if ( error . message ) {
167
- console . log ( error . message ) ;
167
+ console . info ( error . message ) ;
168
168
} else {
169
- console . log ( error ) ;
169
+ console . info ( error ) ;
170
170
}
171
171
} ;
172
172
0 commit comments