aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/test.d.ts
blob: d021ceb99e8bb03dfafe63e6c0f762382dd59a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { LintError } from "./test/lintError";
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;