Skip to content

Commit 3137fa4

Browse files
committed
todo
1 parent cb29929 commit 3137fa4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/client/unittests/display

src/client/unittests/display/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class TestResultDisplay {
124124
this.statusBar.command = haveTests ? constants.Commands.Tests_View_UI : constants.Commands.Tests_Discover;
125125
this.statusBar.show();
126126

127-
if (!haveTests && !quietMode){
127+
if (!haveTests && !quietMode) {
128128
// TODO: show an option that will invoke a command 'python.test.configureTest' or similar
129129
// This will be hanlded by main.ts that will capture input from user and configure the tests
130130
vscode.window.showInformationMessage('No Tests discovered');
@@ -141,7 +141,10 @@ export class TestResultDisplay {
141141
if (reason !== CANCELLATION_REASON) {
142142
this.statusBar.text = `$(alert) Test discovery failed`;
143143
this.statusBar.tooltip = `Discovering Tests failed (view 'Python Test Log' output panel for details)`;
144+
// TODO: ignore this quitemode, always display the error message (inform the user)
144145
if (!isNotInstalledError(reason) && !quietMode) {
146+
// TODO: show an option that will invoke a command 'python.test.configureTest' or similar
147+
// This will be hanlded by main.ts that will capture input from user and configure the tests
145148
vscode.window.showErrorMessage('There was an error in discovering tests');
146149
}
147150
}

0 commit comments

Comments
 (0)