File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -193,14 +193,7 @@ export class TestRunProxy {
193
193
}
194
194
195
195
public async end ( ) {
196
- if ( ! this . testRun ) {
197
- return ;
198
- }
199
-
200
- // Compute final coverage numbers if any coverage info has been captured during the run.
201
- await this . coverage . computeCoverage ( this . testRun ) ;
202
-
203
- this . testRun . end ( ) ;
196
+ this . testRun ?. end ( ) ;
204
197
}
205
198
206
199
public appendOutput ( output : string ) {
@@ -210,6 +203,15 @@ export class TestRunProxy {
210
203
this . queuedOutput . push ( output ) ;
211
204
}
212
205
}
206
+
207
+ public async computeCoverage ( ) {
208
+ if ( ! this . testRun ) {
209
+ return ;
210
+ }
211
+
212
+ // Compute final coverage numbers if any coverage info has been captured during the run.
213
+ await this . coverage . computeCoverage ( this . testRun ) ;
214
+ }
213
215
}
214
216
215
217
/** Class used to run tests */
@@ -304,6 +306,7 @@ export class TestRunner {
304
306
} ;
305
307
}
306
308
await runner . runHandler ( false , TestKind . coverage , token ) ;
309
+ await runner . testRun . computeCoverage ( ) ;
307
310
} ,
308
311
false ,
309
312
runnableTag
You can’t perform that action at this time.
0 commit comments