UNPKG

azure-pipelines-task-lib

Version:
30 lines (29 loc) 944 B
export declare class MockTestRunner { constructor(testPath?: string, taskJsonPath?: string); private _testPath; private _taskJsonPath; nodePath: string; stdout: string; stderr: string; cmdlines: {}; invokedToolCount: number; succeeded: boolean; errorIssues: string[]; warningIssues: string[]; LoadAsync(testPath?: string, taskJsonPath?: string): Promise<MockTestRunner>; get failed(): boolean; ran(cmdline: string): boolean; createdErrorIssue(message: string): boolean; createdWarningIssue(message: string): boolean; stdOutContained(message: string): boolean; stdErrContained(message: string): boolean; runAsync(nodeVersion?: number): Promise<void>; private getNodePath; private getNodeVersion; private getTaskJsonPath; private downloadNode; private downloadFile; private downloadTarGz; private getPathToNodeExe; private getPlatform; }