2017-08-14 05:01:11 +02:00
|
|
|
import { LintError } from "./verify/lintError";
|
2017-05-28 00:38:50 +02:00
|
|
|
export interface TestOutput {
|
|
|
|
skipped: false;
|
|
|
|
errorsFromLinter: LintError[];
|
|
|
|
errorsFromMarkup: LintError[];
|
|
|
|
fixesFromLinter: string;
|
|
|
|
fixesFromMarkup: string;
|
|
|
|
markupFromLinter: string;
|
|
|
|
markupFromMarkup: string;
|
|
|
|
}
|
|
|
|
export interface SkippedTest {
|
|
|
|
skipped: true;
|
|
|
|
requirement: string;
|
|
|
|
}
|
|
|
|
export interface TestResult {
|
|
|
|
directory: string;
|
|
|
|
results: {
|
|
|
|
[fileName: string]: TestOutput | SkippedTest;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
export declare function runTests(patterns: string[], rulesDirectory?: string | string[]): TestResult[];
|
|
|
|
export declare function runTest(testDirectory: string, rulesDirectory?: string | string[]): TestResult;
|
|
|
|
export declare function consoleTestResultsHandler(testResults: TestResult[]): boolean;
|
|
|
|
export declare function consoleTestResultHandler(testResult: TestResult): boolean;
|