/** * Agentic QE v3 - Test Generation MCP Tool * * qe/tests/generate - Generate tests for source code * * This tool wraps the test-generation domain service and exposes it via MCP. * Supports unit, integration, and e2e test generation with AI enhancement. */ import { MCPToolBase, MCPToolConfig, MCPToolContext } from '../base'; import { ToolResult } from '../../types'; export interface TestGenerateParams { sourceFiles: string[]; testType?: 'unit' | 'integration' | 'e2e'; framework?: 'jest' | 'vitest' | 'mocha' | 'pytest'; language?: 'typescript' | 'javascript' | 'python' | 'java' | 'go'; coverageTarget?: number; patterns?: string[]; aiEnhancement?: boolean; detectAntiPatterns?: boolean; [key: string]: unknown; } export interface TestGenerateResult { tests: GeneratedTest[]; coverageEstimate: number; patternsUsed: string[]; suggestions: string[]; antiPatterns?: AntiPattern[]; } export interface GeneratedTest { id: string; name: string; sourceFile: string; testFile: string; testCode: string; type: 'unit' | 'integration' | 'e2e'; assertions: number; } export interface AntiPattern { name: string; location: string; severity: 'high' | 'medium' | 'low'; suggestion: string; } export declare class TestGenerateTool extends MCPToolBase { readonly config: MCPToolConfig; private testGeneratorService; /** * Initialize or get the test generator service */ private getService; execute(params: TestGenerateParams, context: MCPToolContext): Promise>; } //# sourceMappingURL=generate.d.ts.map