Combine file name and test name to a single identifier for CSV export of BiDi results (#34172)

This commit is contained in:
Henrik Skupin 2024-12-30 19:06:00 +01:00 committed by GitHub
parent 9dbe63636d
commit cab2bc4e2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -41,15 +41,14 @@ class CsvReporter implements Reporter {
}
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 file of project.suites) {
for (const test of file.allTests()) {
if (test.ok())
continue;
const row = [];
row.push(file.title);
row.push(csvEscape(test.title));
row.push(csvEscape(`${file.title} :: ${test.title}`));
row.push(test.expectedStatus);
row.push(test.outcome());
const result = test.results.find(r => r.error);