1 | import charm from 'charm';
|
2 | import { CoverageMap } from 'istanbul-lib-coverage';
|
3 | import Test from '../Test';
|
4 | import Suite from '../Suite';
|
5 | import TextCoverage, { TextCoverageProperties } from './TextCoverage';
|
6 | import Server from '../Server';
|
7 | import { CoverageMessage, DeprecationMessage } from '../executors/Executor';
|
8 | import Node, { TunnelMessage } from '../executors/Node';
|
9 | export declare type Charm = charm.CharmInstance;
|
10 | export 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 | }
|
41 | export interface RunnerProperties extends TextCoverageProperties {
|
42 | hidePassed: boolean;
|
43 | hideSkipped: boolean;
|
44 | hideTunnelDownloadProgress: boolean;
|
45 | }
|