Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
akshita31 committed May 28, 2018
1 parent 85e7ca2 commit 6bad157
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/observers/DotnetTestLoggerObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ export default class DotNetTestLoggerObserver extends BaseLoggerObserver {
this.logger.appendLine(result.ErrorStackTrace);
}

if (result.StandardOutputMessages && result.StandardOutputMessages.length > 0) {
if (result.StandardOutput && result.StandardOutput.length > 0) {
this.logger.appendLine("Standard Output Messages:");
result.StandardOutputMessages.forEach(message => this.logger.appendLine(message));
result.StandardOutput.forEach(message => this.logger.appendLine(message));
}

if (result.StandardErrorMessages && result.StandardErrorMessages.length > 0) {
if (result.StandardError && result.StandardError.length > 0) {
this.logger.appendLine("Standard Error Messages:");
result.StandardErrorMessages.forEach(message => this.logger.appendLine(message));
result.StandardError.forEach(message => this.logger.appendLine(message));
}

this.logger.appendLine();
Expand Down
4 changes: 2 additions & 2 deletions src/omnisharp/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ export namespace V2 {
Outcome: string;
ErrorMessage: string;
ErrorStackTrace: string;
StandardOutputMessages: string[];
StandardErrorMessages: string[];
StandardOutput: string[];
StandardError: string[];
}

export interface RunTestResponse {
Expand Down
8 changes: 4 additions & 4 deletions test/unitTests/logging/DotnetTestLoggerObserver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ suite(`${DotNetTestLoggerObserver.name}`, () => {
test(`Displays the standard output messages if any`, () => {
observer.post(event);
event.results.forEach(result => {
result.StandardOutputMessages.forEach(message => expect(appendedMessage).to.contain(message));
result.StandardOutput.forEach(message => expect(appendedMessage).to.contain(message));
});
});

test(`Displays the standard error messages if any`, () => {
observer.post(event);
event.results.forEach(result => {
result.StandardErrorMessages.forEach(message => expect(appendedMessage).to.contain(message));
result.StandardError.forEach(message => expect(appendedMessage).to.contain(message));
});
});
});
Expand All @@ -105,7 +105,7 @@ function getDotNetTestResults(methodname: string, outcome: string, errorMessage:
Outcome: outcome,
ErrorMessage: errorMessage,
ErrorStackTrace: errorStackTrace,
StandardOutputMessages : stdoutMessages,
StandardErrorMessages: stdErrorMessages
StandardOutput : stdoutMessages,
StandardError: stdErrorMessages
};
}

0 comments on commit 6bad157

Please sign in to comment.