UNPKG

@testomatio/reporter

Version:
77 lines (76 loc) 2.52 kB
export default TestomatioPipe; export type Pipe = import("../../types/types.js").Pipe; export type TestData = import("../../types/types.js").TestData; /** * @typedef {import('../../types/types.js').Pipe} Pipe * @typedef {import('../../types/types.js').TestData} TestData * @class TestomatioPipe * @implements {Pipe} */ declare class TestomatioPipe implements Pipe { constructor(params: any, store: any); batch: { isEnabled: any; intervalFunction: any; intervalTime: number; tests: any[]; batchIndex: number; numberOfTimesCalledWithoutTests: number; }; retriesTimestamps: any[]; reportingCanceledDueToReqFailures: boolean; notReportedTestsCount: number; isEnabled: boolean; url: any; apiKey: any; store: any; title: any; sharedRun: boolean; sharedRunTimeout: number; groupTitle: any; env: string; label: string; client: Gaxios; proceed: boolean; jiraId: string; runId: any; createNewTests: any; hasUnmatchedTests: boolean; requestFailures: number; /** * Asynchronously prepares and retrieves the Testomat.io test grepList based on the provided options. * @param {Object} opts - The options for preparing the test grepList. * @returns {Promise<string[]>} - An array containing the retrieved * test grepList, or an empty array if no tests are found or the request is disabled. * @throws {Error} - Throws an error if there was a problem while making the request. */ prepareRun(opts: any): Promise<string[]>; /** * Creates a new run on Testomat.io * @param {{isBatchEnabled?: boolean, kind?: string}} params * @returns Promise<void> */ createRun(params?: { isBatchEnabled?: boolean; kind?: string; }): Promise<void>; runUrl: string; runPublicUrl: any; /** * Adds a test to the batch uploader (or reports a single test if batch uploading is disabled) */ addTest(data: any): Promise<void | import("gaxios").GaxiosResponse<any>>; /** * Syncs / flushes buffered tests by uploading them as a batch * This is used to manually trigger batch upload (e.g., after all tests are added) */ sync(): Promise<void>; /** * @param {import('../../types/types.js').RunData} params * @returns */ finishRun(params: import("../../types/types.js").RunData): Promise<void>; toString(): string; #private; } import { Gaxios } from 'gaxios';