Skip to content

refactor: improve e2e test reporting #10304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Oct 16, 2023
commit 1096c2f119967765fdeeed29e56c044da84d62ea
6 changes: 5 additions & 1 deletion site/e2e/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,25 @@ class CoderReporter implements Reporter {
for (const [target, chunk] of output) {
target.write(`${chunk.replace(/\n$/g, "")}\n`);
}
testOutput.delete(test.id);

if (result.errors.length > 0) {
// eslint-disable-next-line no-console -- Debugging output
console.log("==> Errors");
for (const error of result.errors) {
if (error.location) {
// eslint-disable-next-line no-console -- Debugging output
console.log(`${error.location.file}:${error.location.line}:`);
}
if (error.snippet) {
// eslint-disable-next-line no-console -- Debugging output
console.log(error.snippet);
}

if (error.message) {
// eslint-disable-next-line no-console -- Debugging output
console.log(error.message);
} else {
// eslint-disable-next-line no-console -- Debugging output
console.log(error);
}
}
Expand All @@ -81,6 +84,7 @@ class CoderReporter implements Reporter {
}
}
}
testOutput.delete(test.id);
await exportDebugPprof(test.title);
}

Expand Down