@@ -54,24 +54,18 @@ export class PesterTestsFeature implements IFeature {
54
54
private launchAllTestsInActiveEditor ( launchType : LaunchType ) {
55
55
const uriString = vscode . window . activeTextEditor . document . uri . toString ( ) ;
56
56
const launchConfig = this . createLaunchConfig ( uriString , launchType ) ;
57
+ launchConfig . args . push ( "-All" ) ;
57
58
this . launch ( launchConfig ) ;
58
59
}
59
60
60
- private async launchTests ( uriString : string , runInDebugger : boolean , describeBlockName ?: string , lineNum ?: number ) {
61
- // PSES passes null for the describeBlockName to signal that it can't evaluate the TestName.
62
- if ( ! describeBlockName ) {
63
- const answer = await vscode . window . showErrorMessage (
64
- "This Describe block's TestName parameter cannot be evaluated. " +
65
- `Would you like to ${ runInDebugger ? "debug" : "run" } all the tests in this file?` ,
66
- "Yes" , "No" ) ;
67
-
68
- if ( answer !== "Yes" ) {
69
- return ;
70
- }
71
- }
61
+ private async launchTests (
62
+ uriString : string ,
63
+ runInDebugger : boolean ,
64
+ describeBlockName ?: string ,
65
+ describeBlockLineNumber ?: number ) {
72
66
73
67
const launchType = runInDebugger ? LaunchType . Debug : LaunchType . Run ;
74
- const launchConfig = this . createLaunchConfig ( uriString , launchType , describeBlockName , lineNum ) ;
68
+ const launchConfig = this . createLaunchConfig ( uriString , launchType , describeBlockName , describeBlockLineNumber ) ;
75
69
this . launch ( launchConfig ) ;
76
70
}
77
71
0 commit comments