UNPKG

1.64 kBTypeScriptView Raw
1import charm from 'charm';
2import { CoverageMap } from 'istanbul-lib-coverage';
3import Test from '../Test';
4import Suite from '../Suite';
5import TextCoverage, { TextCoverageProperties } from './TextCoverage';
6import Server from '../Server';
7import { CoverageMessage, DeprecationMessage } from '../executors/Executor';
8import Node, { TunnelMessage } from '../executors/Node';
9export declare type Charm = charm.CharmInstance;
10export default class Runner extends TextCoverage implements RunnerProperties {
11 sessions: {
12 [sessionId: string]: {
13 coverage?: CoverageMap;
14 suite?: Suite;
15 [key: string]: any;
16 };
17 };
18 hasRunErrors: boolean;
19 hasSuiteErrors: boolean;
20 hidePassed: boolean;
21 hideSkipped: boolean;
22 hideTunnelDownloadProgress: boolean;
23 serveOnly: boolean;
24 private _deprecationMessages;
25 protected charm: Charm;
26 constructor(executor: Node, options?: Partial<RunnerProperties>);
27 coverage(message: CoverageMessage): void;
28 deprecated(message: DeprecationMessage): void;
29 error(error: Error): void;
30 warning(warning: string | Error): void;
31 log(message: string): void;
32 runEnd(): void;
33 serverStart(server: Server): void;
34 suiteEnd(suite: Suite): void;
35 suiteStart(suite: Suite): void;
36 testEnd(test: Test): void;
37 tunnelDownloadProgress(message: TunnelMessage): void;
38 tunnelStart(_: TunnelMessage): void;
39 tunnelStatus(message: TunnelMessage): void;
40}
41export interface RunnerProperties extends TextCoverageProperties {
42 hidePassed: boolean;
43 hideSkipped: boolean;
44 hideTunnelDownloadProgress: boolean;
45}