@@ -219,6 +219,7 @@ async function runTestAtCursor(
219
219
functions : testConfigFns ,
220
220
isBenchmark : cmd === 'benchmark' ,
221
221
isMod,
222
+ background : ! ! args ?. background ,
222
223
applyCodeCoverage : goConfig . get < boolean > ( 'coverOnSingleTest' )
223
224
} ;
224
225
// Remember this config as the last executed test.
@@ -319,6 +320,7 @@ export function testCurrentPackage(isBenchmark: boolean): CommandFactory {
319
320
flags : getTestFlags ( goConfig , args ) ,
320
321
isBenchmark,
321
322
isMod,
323
+ background : ! ! args ?. background ,
322
324
applyCodeCoverage : goConfig . get < boolean > ( 'coverOnTestPackage' )
323
325
} ;
324
326
// Remember this config as the last executed test.
@@ -350,6 +352,7 @@ export const testWorkspace: CommandFactory = () => (args: any) => {
350
352
goConfig,
351
353
dir : workspaceUri . fsPath ,
352
354
flags : getTestFlags ( goConfig , args ) ,
355
+ background : ! ! args ?. background ,
353
356
includeSubDirectories : true
354
357
} ;
355
358
// Remember this config as the last executed test.
@@ -396,6 +399,7 @@ export function testCurrentFile(isBenchmark: boolean, getConfig = getGoConfig):
396
399
functions : testFunctions ?. map ( ( sym ) => sym . name ) ,
397
400
isBenchmark,
398
401
isMod,
402
+ background : ! ! args ?. background ,
399
403
applyCodeCoverage : goConfig . get < boolean > ( 'coverOnSingleTestFile' )
400
404
} ;
401
405
// Remember this config as the last executed test.
0 commit comments