Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/evals/evalRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,10 @@ async function getGitHash(): Promise<string | undefined> {
return result.status === 0 ? result.stdout.trim() : undefined;
}

// ponytail: warn once per process, not per call — the message is identical and
// runVariantExperiment / scripted loops call this many times.
let warnedNoTestInfo = false;

export async function runEvalDataset(
options: EvalRunnerOptions,
context: EvalContext
Expand Down Expand Up @@ -1328,7 +1332,8 @@ export async function runEvalDataset(
contentType: 'application/json',
body: Buffer.from(JSON.stringify({ caseResults })),
});
} else if (caseResults.length > 0) {
} else if (caseResults.length > 0 && !warnedNoTestInfo) {
warnedNoTestInfo = true;
console.warn(
'[mcp-server-tester] runEvalDataset: testInfo not provided — results will not appear in the MCP reporter.\n' +
'To enable reporting, pass testInfo from the Playwright test function:\n' +
Expand Down
Loading