chore(markdown): do not print details for flaky tests (#24264)
This commit is contained in:
parent
15b9e5afdb
commit
f6540f89ea
|
|
@ -60,15 +60,13 @@ class MarkdownReporter extends BaseReporter {
|
||||||
lines.push(`:heavy_check_mark::heavy_check_mark::heavy_check_mark:`);
|
lines.push(`:heavy_check_mark::heavy_check_mark::heavy_check_mark:`);
|
||||||
lines.push(``);
|
lines.push(``);
|
||||||
|
|
||||||
if (summary.unexpected.length || summary.fatalErrors.length || summary.flaky.length) {
|
if (summary.unexpected.length || summary.fatalErrors.length) {
|
||||||
lines.push(`<details>`);
|
lines.push(`<details>`);
|
||||||
lines.push(``);
|
lines.push(``);
|
||||||
if (summary.fatalErrors.length)
|
if (summary.fatalErrors.length)
|
||||||
this._printFatalErrorDetails(summary.fatalErrors, lines);
|
this._printFatalErrorDetails(summary.fatalErrors, lines);
|
||||||
if (summary.unexpected.length)
|
if (summary.unexpected.length)
|
||||||
this._printTestListDetails(':x:', summary.unexpected, lines);
|
this._printTestListDetails(':x:', summary.unexpected, lines);
|
||||||
if (summary.flaky.length)
|
|
||||||
this._printTestListDetails(':warning:', summary.flaky, lines);
|
|
||||||
lines.push(`</details>`);
|
lines.push(`</details>`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue