Files
openclaw/test/scripts/tool-surface-live-bench.test.ts
Peter SteinbergerandGitHub 85d375c1b2 chore: add live tool-surface benchmark (#109374)
* test(agents): add tool-surface live benchmark

* chore(agents): narrow live benchmark exports

* fix(agents): pin live bench models
2026-07-16 17:20:47 -07:00

32 lines
1.0 KiB
TypeScript

// Tool Surface Live Bench tests cover manual repro argument parsing only.
import { describe, expect, it } from "vitest";
import { parseBenchArgs } from "../../scripts/repro/tool-surface-live-bench.ts";
describe("tool surface live bench repro", () => {
it("parses provider, surface, and task selections", () => {
expect(
parseBenchArgs([
"--providers=openai,google",
"--surfaces=direct,code-mode",
"--tasks=recovery",
]),
).toMatchObject({
providers: ["openai", "google"],
surfaces: ["direct", "code-mode"],
taskIds: ["recovery"],
});
});
it("rejects unknown selections and misspelled arguments", () => {
expect(() => parseBenchArgs(["--providers=ollama"])).toThrow(
"unknown --providers value: ollama",
);
expect(() => parseBenchArgs(["--surface=direct"])).toThrow(
"unknown argument: --surface=direct",
);
expect(() => parseBenchArgs(["--model-openai=gpt-test"])).toThrow(
"unknown argument: --model-openai=gpt-test",
);
});
});