diff --git a/test/runner.node.mjs b/test/runner.node.mjs index 49dd3c7de8..7d15f6e9f6 100755 --- a/test/runner.node.mjs +++ b/test/runner.node.mjs @@ -1081,7 +1081,12 @@ function formatTestToMarkdown(result, concise) { const testTitle = testPath.replace(/\\/g, "/"); const testUrl = getFileUrl(testPath, errorLine); - markdown += "
"; + if (concise) { + markdown += "
  • "; + } else { + markdown += "
    "; + } + if (testUrl) { markdown += `${testTitle}`; } else { @@ -1090,19 +1095,21 @@ function formatTestToMarkdown(result, concise) { if (error) { markdown += ` - ${error}`; } - markdown += ` on ${platform}\n\n`; + markdown += ` on ${platform}`; if (concise) { - // No preview - } else if (isBuildKite) { - const preview = escapeCodeBlock(stdout); - markdown += `\`\`\`terminal\n${preview}\n\`\`\`\n`; + markdown += "
  • \n"; } else { - const preview = escapeHtml(stripAnsi(stdout)); - markdown += `
    ${preview}
    \n`; + markdown += "
    \n\n"; + if (isBuildKite) { + const preview = escapeCodeBlock(stdout); + markdown += `\`\`\`terminal\n${preview}\n\`\`\`\n`; + } else { + const preview = escapeHtml(stripAnsi(stdout)); + markdown += `
    ${preview}
    \n`; + } + markdown += "\n\n
    \n\n"; } - - markdown += `\n\n\n\n`; } return markdown;