File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,16 +21,16 @@ export class TestResultDisplay {
2121 this . statusBar . hide ( ) ;
2222 }
2323 }
24- public DisplayProgressStatus ( tests : Promise < Tests > ) {
24+ public DisplayProgressStatus ( tests : Promise < Tests > , debug : boolean = false ) {
2525 this . displayProgress ( 'Running Tests' , `Running Tests (Click to Stop)` , constants . Commands . Tests_Ask_To_Stop_Test ) ;
2626 tests
27- . then ( this . updateTestRunWithSuccess . bind ( this ) )
27+ . then ( tests => this . updateTestRunWithSuccess ( tests , debug ) )
2828 . catch ( this . updateTestRunWithFailure . bind ( this ) )
2929 // We don't care about any other exceptions returned by updateTestRunWithFailure
3030 . catch ( ( ) => { } ) ;
3131 }
3232
33- private updateTestRunWithSuccess ( tests : Tests ) : Tests {
33+ private updateTestRunWithSuccess ( tests : Tests , debug : boolean = false ) : Tests {
3434 this . clearProgressTicker ( ) ;
3535
3636 // Treat errors as a special case, as we generally wouldn't have any errors
@@ -63,7 +63,7 @@ export class TestResultDisplay {
6363 this . statusBar . color = foreColor ;
6464 this . statusBar . command = constants . Commands . Tests_View_UI ;
6565
66- if ( statusText . length === 0 ) {
66+ if ( statusText . length === 0 && ! debug ) {
6767 vscode . window . showWarningMessage ( 'No tests ran, please check the configuration settings for the tests.' ) ;
6868 }
6969 return tests ;
Original file line number Diff line number Diff line change @@ -244,5 +244,5 @@ function runTestsImpl(arg?: vscode.Uri | TestsToRun | boolean | FlattenedTestFun
244244 return Promise . reject ( reason ) ;
245245 } ) ;
246246
247- testResultDisplay . DisplayProgressStatus ( runPromise ) ;
247+ testResultDisplay . DisplayProgressStatus ( runPromise , debug ) ;
248248}
You can’t perform that action at this time.
0 commit comments