@@ -225,6 +225,13 @@ export class UnitTestManagementService implements ITestManagementService, Dispos
225
225
const testDisplay = this . serviceContainer . get < ITestDisplay > ( ITestDisplay ) ;
226
226
testDisplay . displayFunctionTestPickerUI ( cmdSource , testManager . workspaceFolder , testManager . workingDirectory , file , testFunctions , debug ) ;
227
227
}
228
+ public async runParametrizedTests ( cmdSource : CommandSource , resource : Uri , testFunctions : TestFunction [ ] , debug ?: boolean ) {
229
+ const testManager = await this . getTestManager ( true , resource ) ;
230
+ if ( ! testManager ) {
231
+ return ;
232
+ }
233
+ await this . runTestsImpl ( cmdSource , resource , { testFunction : testFunctions } , undefined , debug ) ;
234
+ }
228
235
public viewOutput ( _cmdSource : CommandSource ) {
229
236
sendTelemetryEvent ( EventName . UNITTEST_VIEW_OUTPUT ) ;
230
237
this . outputChannel . show ( ) ;
@@ -398,6 +405,10 @@ export class UnitTestManagementService implements ITestManagementService, Dispos
398
405
constants . Commands . Tests_Picker_UI_Debug ,
399
406
( _ , cmdSource : CommandSource = CommandSource . commandPalette , file : Uri , testFunctions : TestFunction [ ] ) => this . displayPickerUI ( cmdSource , file , testFunctions , true )
400
407
) ,
408
+ commandManager . registerCommand (
409
+ constants . Commands . Tests_Run_Parametrized ,
410
+ ( _ , cmdSource : CommandSource = CommandSource . commandPalette , resource : Uri , testFunctions : TestFunction [ ] , debug : boolean ) => this . runParametrizedTests ( cmdSource , resource , testFunctions , debug )
411
+ ) ,
401
412
commandManager . registerCommand ( constants . Commands . Tests_Stop , ( _ , resource : Uri ) => this . stopTests ( resource ) ) ,
402
413
commandManager . registerCommand ( constants . Commands . Tests_ViewOutput , ( _ , cmdSource : CommandSource = CommandSource . commandPalette ) => this . viewOutput ( cmdSource ) ) ,
403
414
commandManager . registerCommand ( constants . Commands . Tests_Ask_To_Stop_Discovery , ( ) => this . displayStopUI ( 'Stop discovering tests' ) ) ,
0 commit comments