import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter'; /** * Reporter types - re-exported from canonical source * * This module re-exports types from the canonical types module for backwards compatibility. * All type definitions now live in src/types/. * * @packageDocumentation */ /** * Configuration options for MCP Eval Reporter */ interface MCPEvalReporterConfig { /** * Output directory for reports and historical data * @default '.mcp-test-results' */ outputDir?: string; /** * Auto-open report in browser after test run * @default true (disabled in CI) */ autoOpen?: boolean; /** * Number of historical runs to keep * @default 10 */ historyLimit?: number; /** * Suppress console output (report still generated) * @default false */ quiet?: boolean; /** * Include auto-tracked MCP tool calls from tests without explicit eval results. * When true, any test using the MCP fixture will have its tool calls * included in the report, even without using runEvalCase/runEvalDataset. * When false, only tests with explicit eval results are included. * @default true */ includeAutoTracking?: boolean; } /** * Custom Playwright reporter for MCP eval results * * Generates HTML reports with historical tracking and auto-opens in browser * * @example * ```typescript * // playwright.config.ts * export default defineConfig({ * reporter: [ * ['@mcp-testing/server-tester/reporters/mcpReporter', { * outputDir: '.mcp-test-results', * autoOpen: true, * historyLimit: 10 * }] * ] * }); * ``` */ declare class MCPReporter implements Reporter { private config; private startTime; private allResults; private conformanceChecks; private serverCapabilities; constructor(options?: MCPEvalReporterConfig); private log; private logError; onBegin(_config: FullConfig, _suite: Suite): Promise; onTestEnd(test: TestCase, result: TestResult): Promise; onEnd(_result: FullResult): Promise; private generateReport; private buildRunData; private loadHistoricalData; private saveRunData; private cleanupOldRuns; private openReport; } export { MCPReporter as default };