From cab2bc4e2a1e8f6d5c4f958e68bfa240a622cf98 Mon Sep 17 00:00:00 2001 From: Henrik Skupin Date: Mon, 30 Dec 2024 19:06:00 +0100 Subject: [PATCH] Combine file name and test name to a single identifier for CSV export of BiDi results (#34172) --- tests/bidi/csvReporter.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/bidi/csvReporter.ts b/tests/bidi/csvReporter.ts index 4986a736c3..1da6b6b697 100644 --- a/tests/bidi/csvReporter.ts +++ b/tests/bidi/csvReporter.ts @@ -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);