mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
* test(agents): add tool-surface live benchmark * chore(agents): narrow live benchmark exports * fix(agents): pin live bench models
32 lines
1.0 KiB
TypeScript
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",
|
|
);
|
|
});
|
|
});
|