Appearance
Test sharding made easy
Got lots of expensive tests to run? Shard them across multiple machines.
ts
import { job, task, $ } from "@pandaci/core";
[1, 2, 3].foreach((shard, _, arr) => {
job("Playwright E2E", () => {
task.docker(`Shard - ${shard}`, { image: `playwright` }, () => {
$`npx playwright test --shard=${shard}/${arr.length}`;
});
});
});