1234567891011121314151617181920212223242526
  1. import { Logger } from "./runner";
  2. import { LintError } from "./verify/lintError";
  3. export interface TestOutput {
  4. skipped: false;
  5. errorsFromLinter: LintError[];
  6. errorsFromMarkup: LintError[];
  7. fixesFromLinter: string;
  8. fixesFromMarkup: string;
  9. markupFromLinter: string;
  10. markupFromMarkup: string;
  11. }
  12. export interface SkippedTest {
  13. skipped: true;
  14. requirement: string;
  15. }
  16. export interface TestResult {
  17. directory: string;
  18. results: {
  19. [fileName: string]: TestOutput | SkippedTest;
  20. };
  21. }
  22. export declare function runTests(patterns: string[], rulesDirectory?: string | string[]): TestResult[];
  23. export declare function runTest(testDirectory: string, rulesDirectory?: string | string[]): TestResult;
  24. export declare function consoleTestResultsHandler(testResults: TestResult[], logger: Logger): boolean;
  25. export declare function consoleTestResultHandler(testResult: TestResult, logger: Logger): boolean;