Skip to content

Commit d429661

Browse files
test: add console log "grouping" to Wrangler e2e tests (#8455)
This should make it easier to see what is happening in CI.
1 parent 8eb2065 commit d429661

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/e2e/runIndividualE2EFiles.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ import { readdirSync } from "fs";
1414
// Get a list of e2e test files, each of which should have an associated script
1515
const e2eTests = readdirSync("packages/wrangler/e2e");
1616

17-
const tasks = new Set<string>();
17+
const tasks = new Map<string, string>();
1818

1919
for (const file of e2eTests) {
2020
// Ignore other files in the e2e directory (the README, for instance)
2121
if (file.endsWith(".test.ts")) {
22-
tasks.add(
22+
tasks.set(
23+
file,
2324
`pnpm test:e2e --log-order=stream --output-logs=new-only --summarize --filter wrangler --concurrency 1 -- run ./e2e/${file}`
2425
);
2526
}
2627
}
2728

28-
for (const task of tasks.values()) {
29+
for (const [file, task] of tasks.entries()) {
30+
console.log("::group::Testing: " + file);
2931
execSync(task, {
3032
stdio: "inherit",
3133
});
34+
console.log("::endgroup::");
3235
}

0 commit comments

Comments
 (0)