Skip to content

Commit

Permalink
add meta-data to testcase test-results-reporter#34
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbcook committed Nov 8, 2023
1 parent 45f2db4 commit 0a6b09f
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/TestCase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare class TestCase {
failure: string;
stack_trace: string;
steps: TestStep[];
meta_data: Map<string,string>;
}

declare namespace TestCase { }
Expand Down
1 change: 1 addition & 0 deletions src/models/TestCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class TestCase {
this.failure = '';
this.stack_trace = '';
this.steps = [];
this.meta_data = new Map();
}

}
Expand Down
4 changes: 4 additions & 0 deletions tests/parser.cucumber.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Parser - Cucumber Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -100,6 +101,7 @@ describe('Parser - Cucumber Json', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -114,6 +116,7 @@ describe('Parser - Cucumber Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -141,6 +144,7 @@ describe('Parser - Cucumber Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down
15 changes: 15 additions & 0 deletions tests/parser.junit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -84,6 +85,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -129,6 +131,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -174,6 +177,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -201,6 +205,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -246,6 +251,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -273,6 +279,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -318,6 +325,7 @@ describe('Parser - JUnit', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -364,6 +372,7 @@ describe('Parser - JUnit', () => {
"status": "FAIL",
"failure": "expected to include 'Residntial'",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
},
{
Expand All @@ -378,6 +387,7 @@ describe('Parser - JUnit', () => {
"status": "PASS",
"failure": "",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
}
]
Expand Down Expand Up @@ -405,6 +415,7 @@ describe('Parser - JUnit', () => {
"status": "PASS",
"failure": "",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
}
]
Expand Down Expand Up @@ -450,6 +461,7 @@ describe('Parser - JUnit', () => {
"status": "PASS",
"failure": "",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
},
{
Expand All @@ -464,6 +476,7 @@ describe('Parser - JUnit', () => {
"status": "FAIL",
"failure": "TearDown : System.InvalidOperationException : Operation is not valid due to the current state of the object.",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
},
{
Expand All @@ -478,6 +491,7 @@ describe('Parser - JUnit', () => {
"status": "PASS",
"failure": "",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
},
{
Expand All @@ -492,6 +506,7 @@ describe('Parser - JUnit', () => {
"status": "PASS",
"failure": "",
"stack_trace": "",
"meta_data": new Map(),
"steps": []
}
]
Expand Down
15 changes: 15 additions & 0 deletions tests/parser.mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -99,6 +100,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -113,6 +115,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "SKIP",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -157,6 +160,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -171,6 +175,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -198,6 +203,7 @@ describe('Parser - Mocha Json', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -246,6 +252,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -306,6 +313,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -320,6 +328,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "SKIP",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -364,6 +373,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -378,6 +388,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -405,6 +416,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -449,6 +461,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
},
Expand All @@ -463,6 +476,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "PASS",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down Expand Up @@ -490,6 +504,7 @@ describe('Parser - Mocha Awesmome Json', () => {
skipped: 0,
stack_trace: "",
status: "FAIL",
meta_data: new Map(),
steps: [],
total: 0
}
Expand Down
Loading

0 comments on commit 0a6b09f

Please sign in to comment.