UNPKG

ctrlshiftleft

Version:

AI-powered toolkit for embedding QA and security testing into development workflows

52 lines (47 loc) 898 B
/** * Test scenario extracted from source code */ export interface TestScenario { id: string; description: string; steps: string[]; assertions: string[]; name?: string; type?: 'UI/UX' | 'API' | 'Security' | string; data?: any; } /** * Generated test template */ export interface TestTemplate { content: string; format: string; } /** * Configuration for test generation */ export interface TestConfig { format: string; timeout: number; outputDir: string; } /** * Result of test execution */ export interface TestResult { name: string; status: 'passed' | 'failed' | 'skipped'; error?: string; duration?: number; } /** * Test suite interface that all generated tests should implement */ export interface TestSuite { runTests: (page: any, options: any) => Promise<{ total: number; passed: number; failed: number; skipped: number; }>; }