chore(bidi): use full test title in CSV expectations
This commit is contained in:
parent
245f4b5b86
commit
f602f8adba
|
|
@ -50,7 +50,8 @@ class CsvReporter implements Reporter {
|
||||||
if (test.ok() && !fixme)
|
if (test.ok() && !fixme)
|
||||||
continue;
|
continue;
|
||||||
const row = [];
|
const row = [];
|
||||||
row.push(csvEscape(`${file.title} :: ${test.title}`));
|
const [, , , ...titles] = test.titlePath();
|
||||||
|
row.push(csvEscape(`${file.title} :: ${titles.join(' › ')}`));
|
||||||
row.push(test.expectedStatus);
|
row.push(test.expectedStatus);
|
||||||
row.push(test.outcome());
|
row.push(test.outcome());
|
||||||
if (fixme) {
|
if (fixme) {
|
||||||
|
|
@ -67,7 +68,7 @@ class CsvReporter implements Reporter {
|
||||||
const csv = rows.map(r => r.join(',')).join('\n');
|
const csv = rows.map(r => r.join(',')).join('\n');
|
||||||
const reportFile = path.resolve(this._options.configDir, this._options.outputFile || 'test-results.csv');
|
const reportFile = path.resolve(this._options.configDir, this._options.outputFile || 'test-results.csv');
|
||||||
this._pendingWrite = (async () => {
|
this._pendingWrite = (async () => {
|
||||||
await fs.mkdirSync(path.dirname(reportFile), { recursive: true });
|
await fs.promises.mkdir(path.dirname(reportFile), { recursive: true });
|
||||||
await fs.promises.writeFile(reportFile, csv);
|
await fs.promises.writeFile(reportFile, csv);
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue