deno
a0744859 - perf(test): make --filter fast on many-file suites (collect-then-run)

Commit
142 days ago
perf(test): make --filter fast on many-file suites (collect-then-run) When a name filter is active, stream all test files through a small pool of long-lived collector workers that evaluate them back-to-back in shared isolates to discover registered test names, then run only the files with at least one matching test through the unchanged fully-isolated path. Files with no match are skipped and only contribute their filtered_out counts, reported in their original position so all reporters' output is unchanged. Falls back to the legacy single-phase path for --doc, coverage, and per file whenever collection cannot preserve semantics (top-level throw, top-level Deno.exit(), module already evaluated in the collector). Closes #20384
Author
Parents
Loading