UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

62 lines 1.91 kB
import { Agent } from '../agent'; export interface MockStrategy { dependency: string; mockType: 'full-mock' | 'spy' | 'stub'; reason: string; methods: string[]; } export interface TestQualityValidation { isValid: boolean; score: number; violations: string[]; suggestions: string[]; } export interface InteractionPattern { sequence: string[]; conditions: string[]; assertions: string[]; } export interface ErrorTestScenario { name: string; setup: string; expectation: string; mockConfiguration: string; } /** * London Tester - Mockist Style Testing Agent * * Implements the London School of TDD approach, focusing on: * - Behavior verification over state verification * - Extensive use of mocks, stubs, and spies * - Testing units in complete isolation * - Interaction-based testing patterns */ export declare class LondonTester extends Agent { getPromptTemplate(): string; executeTask(): Promise<any>; /** * Analyze dependencies and generate mocking strategies */ analyzeDependenciesForMocking(sourceCode: string): Promise<MockStrategy[]>; /** * Validate test quality according to London School principles */ validateTestQuality(testCode: string): Promise<TestQualityValidation>; /** * Generate interaction tests for method sequences */ generateInteractionTests(methodSignature: string, dependencies: string[]): Promise<string>; /** * Generate error handling tests with mocks */ generateErrorHandlingTests(methodInfo: any): Promise<string>; private readSourceFiles; private generateMockistTestSuite; private extractDependencies; private determineMockingStrategy; private inferPrimaryMethod; private extractInteractionPatterns; private calculateTestQuality; private generateTestFilePath; } //# sourceMappingURL=london-tester.d.ts.map