ctrlshiftleft
Version:
AI-powered toolkit for embedding QA and security testing into development workflows
38 lines (37 loc) • 1.04 kB
TypeScript
interface TestGeneratorOptions {
format: string;
timeout: number;
}
interface GenerationResult {
testCount: number;
files: string[];
}
export declare class TestGenerator {
private options;
private llmService;
constructor(options: TestGeneratorOptions);
/**
* Generates end-to-end tests from source code
* @param sourcePath Path to source file or directory
* @param outputDir Output directory for generated tests
* @returns Generation result containing test count and file paths
*/
generateTests(sourcePath: string, outputDir: string): Promise<GenerationResult>;
/**
* Get all source files from a path (file or directory)
*/
private getSourceFiles;
/**
* Determine if a file should be skipped for test generation
*/
private shouldSkipFile;
/**
* Generate test file name based on source file
*/
private getTestFileName;
/**
* Generate test template based on format
*/
private generateTestTemplate;
}
export {};