/** * @file Test Runner * @version 1.0.0 * @status STABLE - DO NOT MODIFY WITHOUT TESTS * @lastModified 2024-06-28 * * Test runner utilities for MCP test client * * IMPORTANT: * - Keep test runner simple and focused * - Report detailed results * * Functionality: * - Run collections of tests * - Track test results * - Format test output */ export interface TestResult { name: string; passed: boolean; error?: Error; duration: number; } export interface TestSuiteResult { suiteName: string; passed: TestResult[]; failed: TestResult[]; duration: number; } /** * Run a collection of tests and return the results * * @param suiteName Name of the test suite * @param tests Array of test cases to run * @returns Results of the test run */ export declare function runTests(suiteName: string, tests: Array<{ name: string; test: () => Promise; }>): Promise; /** * Format test results as a string for display * * @param results Results of a test run * @returns Formatted string representation of the results */ export declare function formatTestResults(results: TestSuiteResult): string; /** * Run multiple test suites and combine the results * * @param suites Map of test suites to run * @returns Combined results of all test suites */ export declare function runTestSuites(suites: Map Promise; }>>): Promise;