vibe-tools
Version:
CLI tools for AI agents
40 lines (39 loc) • 1.3 kB
TypeScript
import { TestOptions, TestReport } from './types';
/**
* Format a test report as Markdown
*
* @param report - The test report to format
* @returns Formatted Markdown string
*/
export declare function formatReportAsMarkdown(report: TestReport): string;
/**
* Save a test report to a file
*
* @param report - The test report to save
* @param reportPath - The path to save the report to
*/
export declare function saveReportToFile(report: TestReport, reportPath: string): Promise<void>;
/**
* Save a test result to a file
*
* @param report - The test report to extract the result from
* @param resultPath - The path to save the result to
*/
export declare function saveResultToFile(report: TestReport, resultPath: string): Promise<void>;
/**
* Interface for report comparison results
*/
export interface ReportComparisonResult {
added: string[];
removed: string[];
changed: string[];
unchanged: string[];
}
/**
* Compare two test reports
*
* @param currentReportPath - The path to the current report
* @param previousReportPath - The path to the previous report to compare with
* @returns Comparison result
*/
export declare function compareReports(currentReportPath: string, previousReportPath: string, options: TestOptions): Promise<ReportComparisonResult>;