(label: string, reports: ReadonlyArray<ClientReport>)
| 214 | ); |
| 215 | |
| 216 | const summarize = (label: string, reports: ReadonlyArray<ClientReport>): void => { |
| 217 | const ok = reports.filter((r) => r.ok).length; |
| 218 | const calls = reports.reduce((n, r) => n + r.results.length, 0); |
| 219 | const failures = reports.filter((r) => !r.ok).map((r) => `#${r.id}: ${r.error}`); |
| 220 | // eslint-disable-next-line no-console |
| 221 | console.log( |
| 222 | `[stress:${label}] clients ${ok}/${reports.length} ok, ${calls} execute calls` + |
| 223 | (failures.length ? `\n failures:\n ${failures.join("\n ")}` : ""), |
| 224 | ); |
| 225 | }; |
| 226 | |
| 227 | const CONCURRENCY = Number(process.env.E2E_MCP_STRESS_CLIENTS ?? "10"); |
| 228 | const CALLS = Number(process.env.E2E_MCP_STRESS_CALLS ?? "5"); |
no test coverage detected