1 |
|
2 |
|
3 | import { EventEmitter } from 'events';
|
4 | import * as q from 'q';
|
5 | import { Config } from './config';
|
6 | export interface RunResults {
|
7 | taskId: number;
|
8 | specs: Array<string>;
|
9 | capabilities: any;
|
10 | failedCount: number;
|
11 | exitCode: number;
|
12 | specResults: Array<any>;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare class TaskRunner extends EventEmitter {
|
27 | private configFile;
|
28 | private additionalConfig;
|
29 | private task;
|
30 | private runInFork;
|
31 | constructor(configFile: string, additionalConfig: Config, task: any, runInFork: boolean);
|
32 | /**
|
33 | * Sends the run command.
|
34 | * @return {q.Promise} A promise that will resolve when the task finishes
|
35 | * running. The promise contains the following parameters representing the
|
36 | * result of the run:
|
37 | * taskId, specs, capabilities, failedCount, exitCode, specResults
|
38 | */
|
39 | run(): q.Promise<any>;
|
40 | }
|