Skip to content

Commit fe2e7a4

Browse files
committed
test result feedback
1 parent 7193f18 commit fe2e7a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/features/commands.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ export default function registerCommands(server: OmnisharpServer, extensionPath:
3333

3434
// Run test through dotnet-test command. This function can be moved to a separate structure
3535
function runDotnetTest(testMethod: string, fileName: string, server: OmnisharpServer) {
36-
vscode.window.showInformationMessage('run test! ' + testMethod + ' at ' + fileName);
3736
serverUtils.runDotNetTest(server, { FileName: fileName, MethodName: testMethod }).then(response => {
38-
vscode.window.showInformationMessage('Test ' + testMethod + response.Pass ? 'Passed' : 'Failed');
37+
if (response.Pass) {
38+
vscode.window.showInformationMessage('Test passed');
39+
}
40+
else {
41+
vscode.window.showErrorMessage('Test failed');
42+
}
3943
});
4044
}
4145

0 commit comments

Comments
 (0)