Skip to content

Commit 3a7b176

Browse files
committed
disable message about no tests running
1 parent c7deb88 commit 3a7b176

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/client/unittests/display/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

src/client/unittests/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)