@salesforce/apex-node
Version:
Salesforce JS library for Apex
67 lines (66 loc) • 1.54 kB
TypeScript
export interface ReportSection {
type: 'header' | 'summary' | 'failures' | 'warnings' | 'table' | 'list' | 'coverage';
content: string;
}
export interface FailureTest {
testName: string;
duration?: string;
message?: string;
stackTrace?: string;
}
export interface WarningTest {
testName: string;
value: string;
type: 'performance' | 'coverage';
}
export interface TestTableRow {
testName: string;
className: string;
outcome: string;
outcomeEmoji: string;
coverage?: string;
runtime: string;
hasWarning: boolean;
}
export interface CoverageTableRow {
className: string;
percentage: string;
uncoveredLines: string;
}
export interface ReportData {
timestamp: string;
summary: {
total: number;
passed: number;
failed: number;
skipped: number;
duration: string;
};
failures: FailureTest[];
warnings: {
poorlyPerforming: WarningTest[];
poorlyCovered: WarningTest[];
};
testTable?: {
rows: TestTableRow[];
note?: string;
};
passedTests: Array<{
testName: string;
runtime?: string;
coverage?: string;
isSlow: boolean;
hasLowCoverage: boolean;
}>;
skippedTests: Array<{
testName: string;
}>;
coverageTable?: {
rows: CoverageTableRow[];
note?: string;
};
}
/**
* Renders markdown report from structured data
*/
export declare const renderMarkdownReport: (data: ReportData) => string;