Skip to content

Commit 5e4ad57

Browse files
committed
Rename JSON event .message -> .messages
1 parent 7407fb9 commit 5e4ad57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/TestExplorer/TestParsers/SwiftTestingOutputParser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface RunEnded {
6767

6868
interface BaseEvent {
6969
timestamp: number;
70-
message: EventMessage[];
70+
messages: EventMessage[];
7171
testID: string;
7272
}
7373

@@ -160,7 +160,7 @@ export class SwiftTestingOutputParser {
160160
const testName = this.testName(item.payload.testID);
161161
const testIndex = runState.getTestItemIndex(testName, undefined);
162162
const sourceLocation = item.payload.sourceLocation;
163-
item.payload.message.forEach(message => {
163+
item.payload.messages.forEach(message => {
164164
runState.recordIssue(testIndex, message.text, {
165165
file: sourceLocation._filePath,
166166
line: sourceLocation.line,

Diff for: test/suite/testexplorer/SwiftTestingOutputParser.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ suite("SwiftTestingOutputParser Suite", () => {
5151
payload: {
5252
kind: name,
5353
timestamp: 0,
54-
message: messages ?? [],
54+
messages: messages ?? [],
5555
...{ testID, sourceLocation },
5656
} as EventRecordPayload,
5757
};

0 commit comments

Comments
 (0)