Combine file name and test name to a single identifier for CSV export of BiDi results (#34172)
This commit is contained in:
parent
9dbe63636d
commit
cab2bc4e2a
|
@ -41,15 +41,14 @@ class CsvReporter implements Reporter {
|
||||||
}
|
}
|
||||||
|
|
||||||
onEnd(result: FullResult) {
|
onEnd(result: FullResult) {
|
||||||
const rows = [['File Name', 'Test Name', 'Expected Status', 'Status', 'Error Message']];
|
const rows = [['Test Name', 'Expected Status', 'Status', 'Error Message']];
|
||||||
for (const project of this._suite.suites) {
|
for (const project of this._suite.suites) {
|
||||||
for (const file of project.suites) {
|
for (const file of project.suites) {
|
||||||
for (const test of file.allTests()) {
|
for (const test of file.allTests()) {
|
||||||
if (test.ok())
|
if (test.ok())
|
||||||
continue;
|
continue;
|
||||||
const row = [];
|
const row = [];
|
||||||
row.push(file.title);
|
row.push(csvEscape(`${file.title} :: ${test.title}`));
|
||||||
row.push(csvEscape(test.title));
|
|
||||||
row.push(test.expectedStatus);
|
row.push(test.expectedStatus);
|
||||||
row.push(test.outcome());
|
row.push(test.outcome());
|
||||||
const result = test.results.find(r => r.error);
|
const result = test.results.find(r => r.error);
|
||||||
|
|
Loading…
Reference in New Issue