/** * Test Dependencies — DAG-based test execution ordering. */ import type { TestCase } from './types'; export interface DepTestCase extends TestCase { id?: string; depends_on?: string | string[]; } export interface ExecutionPlan { /** Groups of tests that can run in parallel within each group, sequential between groups */ groups: DepTestCase[][]; /** Map of test id to its dependents */ dependencyMap: Map; } /** * Build an execution plan from tests with dependencies. * Tests without deps go first. Tests with deps wait for their deps. */ export declare function buildExecutionPlan(tests: DepTestCase[]): ExecutionPlan; /** * Check if a test should be skipped because a dependency failed. */ /** * Generate a Mermaid diagram of test dependencies. */ export declare function generateDependencyGraph(tests: DepTestCase[]): string; /** * Format dependency graph info for terminal display. */ export declare function formatDependencyGraph(tests: DepTestCase[]): string; /** * Check if a test should be skipped because a dependency failed. */ export declare function shouldSkip(test: DepTestCase, completedResults: Map): { skip: boolean; reason?: string; }; //# sourceMappingURL=deps.d.ts.map