@testomatio/reporter 1.6.17-beta-artifacts → 1.6.17-beta.1-tls-fix

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/adapter/codecept.d.ts +2 -0
  2. package/lib/adapter/cucumber/current.d.ts +14 -0
  3. package/lib/adapter/cucumber/legacy.d.ts +0 -0
  4. package/lib/adapter/cucumber.d.ts +2 -0
  5. package/lib/adapter/cypress-plugin/index.d.ts +2 -0
  6. package/lib/adapter/jasmine.d.ts +11 -0
  7. package/lib/adapter/jest.d.ts +13 -0
  8. package/lib/adapter/mocha.d.ts +2 -0
  9. package/lib/adapter/nightwatch.d.ts +4 -0
  10. package/lib/adapter/nightwatch.js +75 -0
  11. package/lib/adapter/playwright.d.ts +14 -0
  12. package/lib/adapter/vitest.d.ts +35 -0
  13. package/lib/adapter/webdriver.d.ts +24 -0
  14. package/lib/bin/cli.d.ts +2 -0
  15. package/lib/bin/reportXml.d.ts +2 -0
  16. package/lib/bin/startTest.d.ts +2 -0
  17. package/lib/bin/uploadArtifacts.d.ts +2 -0
  18. package/lib/client.d.ts +76 -0
  19. package/lib/config.d.ts +1 -0
  20. package/lib/constants.d.ts +25 -0
  21. package/lib/data-storage.d.ts +34 -0
  22. package/lib/junit-adapter/adapter.d.ts +9 -0
  23. package/lib/junit-adapter/csharp.d.ts +5 -0
  24. package/lib/junit-adapter/index.d.ts +3 -0
  25. package/lib/junit-adapter/java.d.ts +5 -0
  26. package/lib/junit-adapter/javascript.d.ts +4 -0
  27. package/lib/junit-adapter/python.d.ts +5 -0
  28. package/lib/junit-adapter/ruby.d.ts +4 -0
  29. package/lib/output.d.ts +11 -0
  30. package/lib/package.json +3 -0
  31. package/lib/pipe/bitbucket.d.ts +23 -0
  32. package/lib/pipe/csv.d.ts +47 -0
  33. package/lib/pipe/debug.d.ts +29 -0
  34. package/lib/pipe/github.d.ts +30 -0
  35. package/lib/pipe/gitlab.d.ts +23 -0
  36. package/lib/pipe/html.d.ts +35 -0
  37. package/lib/pipe/index.d.ts +1 -0
  38. package/lib/pipe/testomatio.d.ts +70 -0
  39. package/lib/pipe/testomatio.js +5 -0
  40. package/lib/reporter-functions.d.ts +34 -0
  41. package/lib/reporter.d.ts +232 -0
  42. package/lib/services/artifacts.d.ts +33 -0
  43. package/lib/services/index.d.ts +9 -0
  44. package/lib/services/key-values.d.ts +27 -0
  45. package/lib/services/logger.d.ts +64 -0
  46. package/lib/uploader.d.ts +60 -0
  47. package/lib/utils/pipe_utils.d.ts +41 -0
  48. package/lib/utils/utils.d.ts +45 -0
  49. package/lib/utils/utils.js +2 -5
  50. package/lib/xmlReader.d.ts +92 -0
  51. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export default CodeceptReporter;
2
+ export function CodeceptReporter(config: any): void;
@@ -0,0 +1,14 @@
1
+ export default CucumberReporter;
2
+ export class CucumberReporter extends Formatter {
3
+ constructor(options: any);
4
+ failures: any[];
5
+ cases: any[];
6
+ client: TestomatClient;
7
+ status: string;
8
+ parseEnvelope(envelope: any): void;
9
+ onTestCaseStarted(testCaseStarted: any): void;
10
+ onTestCaseFinished(testCaseFinished: any): void;
11
+ onTestRunFinished(envelope: any): void;
12
+ }
13
+ import { Formatter } from '@cucumber/cucumber';
14
+ import TestomatClient from '../../client.js';
File without changes
@@ -0,0 +1,2 @@
1
+ export default CucumberReporter;
2
+ import { CucumberReporter } from './cucumber/current.js';
@@ -0,0 +1,2 @@
1
+ export default testomatioReporter;
2
+ declare function testomatioReporter(on: any): void;
@@ -0,0 +1,11 @@
1
+ export default JasmineReporter;
2
+ export class JasmineReporter {
3
+ constructor(options: any);
4
+ testTimeMap: {};
5
+ client: TestomatClient;
6
+ getDuration(test: any): number;
7
+ specStarted(result: any): void;
8
+ specDone(result: any): void;
9
+ jasmineDone(suiteInfo: any, done: any): void;
10
+ }
11
+ import TestomatClient from '../client.js';
@@ -0,0 +1,13 @@
1
+ export class JestReporter {
2
+ constructor(globalConfig: any, options: any);
3
+ _globalConfig: any;
4
+ _options: any;
5
+ client: TestomatClient;
6
+ onRunStart(): void;
7
+ onTestStart(testFile: any): void;
8
+ onTestCaseStart(test: any, testCase: any): void;
9
+ onTestResult(test: any, testResult: any): void;
10
+ onRunComplete(contexts: any, results: any): void;
11
+ }
12
+ export default JestReporter;
13
+ import TestomatClient from '../client.js';
@@ -0,0 +1,2 @@
1
+ export default MochaReporter;
2
+ declare function MochaReporter(runner: any, opts: any): void;
@@ -0,0 +1,4 @@
1
+ declare namespace _default {
2
+ function write(results: any, options: any, done: any): Promise<void>;
3
+ }
4
+ export default _default;
@@ -0,0 +1,75 @@
1
+ import TestomatClient from '../client.js';
2
+ import { config } from '../config.js';
3
+ import { STATUS } from '../constants';
4
+ import { getTestomatIdFromTestTitle } from '../utils/utils.js';
5
+ const apiKey = config.TESTOMATIO;
6
+ const client = new TestomatClient({ apiKey });
7
+ export default {
8
+ write: async (results, options, done) => {
9
+ await client.createRun();
10
+ const testFiles = results.modules;
11
+ for (const fileName in testFiles) {
12
+ // in nightwatch: object containing tests from a single file
13
+ const testModule = testFiles[fileName];
14
+ // passed and failed tests (tests with assertions)
15
+ const completedTests = testModule.completed;
16
+ // skipped tests (skipped by user or tests without assertions)
17
+ const skippedTests = testModule.skipped;
18
+ const tags = testModule.tags || [];
19
+ // if test file contains multiple suites, the last suite name is used as a name 🤷‍♂️
20
+ // no other places which contain suite name (even inside test object)
21
+ const suiteTitle = testModule.name;
22
+ for (const testTitle in completedTests) {
23
+ const test = completedTests[testTitle];
24
+ let status;
25
+ switch (test.status) {
26
+ case 'pass':
27
+ status = STATUS.PASSED;
28
+ break;
29
+ case 'fail':
30
+ status = STATUS.FAILED;
31
+ break;
32
+ // probably not required (because skipped tests are in separate array), but just in case
33
+ case 'skip':
34
+ status = STATUS.SKIPPED;
35
+ console.info('Skipped test is in completed tests array:', test, 'Not expected behavior.');
36
+ break;
37
+ default:
38
+ console.error('Test status processing error:', test.status);
39
+ }
40
+ const testId = getTestomatIdFromTestTitle(testTitle);
41
+ client.addTestRun(status, {
42
+ error: { name: test.assertions?.[0]?.name, message: test.assertions?.[0]?.message, stack: test.stackTrace },
43
+ file: testModule.modulePath?.replace(process.cwd(), ''),
44
+ message: test.assertions?.[0]?.message,
45
+ rid: `${testModule.uuid || ''}_${testTitle || ''}`,
46
+ stack: test.stackTrace,
47
+ suite_title: suiteTitle,
48
+ tags,
49
+ test_id: testId,
50
+ time: test.timeMs,
51
+ title: testTitle,
52
+ });
53
+ }
54
+ // just array with skipped tests titles, no any other info
55
+ for (const testTitle of skippedTests) {
56
+ client.addTestRun(STATUS.SKIPPED, {
57
+ suite_title: suiteTitle,
58
+ tags,
59
+ rid: `${testModule.uuid || ''}_${testTitle || ''}`,
60
+ title: testTitle,
61
+ });
62
+ }
63
+ }
64
+ /**
65
+ * @type {'passed' | 'failed' | 'finished'}
66
+ */
67
+ let runStatus = 'finished';
68
+ if (results.failed)
69
+ runStatus = 'failed';
70
+ else if (results.passed)
71
+ runStatus = 'passed';
72
+ await client.updateRunStatus(runStatus);
73
+ done();
74
+ },
75
+ };
@@ -0,0 +1,14 @@
1
+ export default PlaywrightReporter;
2
+ declare class PlaywrightReporter {
3
+ constructor(config?: {});
4
+ client: TestomatioClient;
5
+ uploads: any[];
6
+ onBegin(config: any, suite: any): void;
7
+ suite: any;
8
+ config: any;
9
+ onTestBegin(testInfo: any): void;
10
+ onTestEnd(test: any, result: any): void;
11
+ onEnd(result: any): Promise<void>;
12
+ #private;
13
+ }
14
+ import TestomatioClient from '../client.js';
@@ -0,0 +1,35 @@
1
+ export default VitestReporter;
2
+ export type VitestTest = any;
3
+ export type VitestTestFile = any;
4
+ export type VitestSuite = any;
5
+ export type VitestTestLogs = any;
6
+ export type ErrorWithDiff = import("../../types/vitest.types.js").ErrorWithDiff;
7
+ export type STATUS = typeof import("../constants.js").STATUS;
8
+ export type TestData = import("../../types/types.js").TestData;
9
+ /**
10
+ * @typedef {import('../../types/types.js').VitestTest} VitestTest
11
+ * @typedef {import('../../types/types.js').VitestTestFile} VitestTestFile
12
+ * @typedef {import('../../types/types.js').VitestSuite} VitestSuite
13
+ * @typedef {import('../../types/types.js').VitestTestLogs} VitestTestLogs
14
+ * @typedef {import('../../types/vitest.types.js').ErrorWithDiff} ErrorWithDiff
15
+ * @typedef {typeof import('../constants.js').STATUS} STATUS
16
+ * @typedef {import('../../types/types.js').TestData} TestData
17
+ */
18
+ export class VitestReporter {
19
+ constructor(config?: {});
20
+ client: TestomatioClient;
21
+ /**
22
+ * @type {(TestData & {status: string})[]} tests
23
+ */
24
+ tests: (TestData & {
25
+ status: string;
26
+ })[];
27
+ onInit(): void;
28
+ /**
29
+ * @param {VitestTestFile[] | undefined} files // array with results;
30
+ * @param {unknown[] | undefined} errors // errors does not contain errors from tests; probably its testrunner errors
31
+ */
32
+ onFinished(files: VitestTestFile[] | undefined, errors: unknown[] | undefined): Promise<void>;
33
+ #private;
34
+ }
35
+ import { Client as TestomatioClient } from '../client.js';
@@ -0,0 +1,24 @@
1
+ export default WebdriverReporter;
2
+ declare class WebdriverReporter extends WDIOReporter {
3
+ constructor(options: any);
4
+ client: TestomatClient;
5
+ _addTestPromises: any[];
6
+ _isSynchronising: boolean;
7
+ /**
8
+ *
9
+ * @param {RunnerStats} runData
10
+ */
11
+ onRunnerEnd(runData: RunnerStats): Promise<void>;
12
+ onRunnerStart(): void;
13
+ onTestStart(test: any): void;
14
+ onTestEnd(test: any): void;
15
+ onSuiteEnd(scerario: any): void;
16
+ addTest(test: any): Promise<void>;
17
+ /**
18
+ * @param {import('../../types/types.js').WebdriverIOScenario} scenario
19
+ */
20
+ addBddScenario(scenario: import("../../types/types.js").WebdriverIOScenario): Promise<import("../../types/types.js").PipeResult[]>;
21
+ }
22
+ import WDIOReporter from '@wdio/reporter';
23
+ import TestomatClient from '../client.js';
24
+ import { RunnerStats } from '@wdio/reporter';
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,76 @@
1
+ export default Client;
2
+ export type TestData = import("../types/types.js").TestData;
3
+ export type PipeResult = import("../types/types.js").PipeResult;
4
+ /**
5
+ * @typedef {import('../types/types.js').TestData} TestData
6
+ * @typedef {import('../types/types.js').PipeResult} PipeResult
7
+ */
8
+ export class Client {
9
+ /**
10
+ * Create a Testomat client instance
11
+ * @returns
12
+ */
13
+ constructor(params?: {});
14
+ paramsForPipesFactory: {};
15
+ pipeStore: {};
16
+ runId: `${string}-${string}-${string}-${string}-${string}`;
17
+ queue: Promise<void>;
18
+ version: any;
19
+ executionList: Promise<void>;
20
+ uploader: S3Uploader;
21
+ /**
22
+ * Asynchronously prepares the execution list for running tests through various pipes.
23
+ * Each pipe in the client is checked for enablement,
24
+ * and if all pipes are disabled, the function returns a resolved Promise.
25
+ * Otherwise, it executes the `prepareRun` method for each enabled pipe and collects the results.
26
+ * The results are then filtered to remove any undefined values.
27
+ * If no valid results are found, the function returns undefined.
28
+ * Otherwise, it returns the first non-empty array from the filtered results.
29
+ *
30
+ * @param {Object} params - The options for preparing the test execution list.
31
+ * @param {string} params.pipe - Name of the executed pipe.
32
+ * @param {string} params.pipeOptions - Filter option.
33
+ * @returns {Promise<any>} - A Promise that resolves to an
34
+ * array containing the prepared execution list,
35
+ * or resolves to undefined if no valid results are found or if all pipes are disabled.
36
+ */
37
+ prepareRun(params: {
38
+ pipe: string;
39
+ pipeOptions: string;
40
+ }): Promise<any>;
41
+ pipes: any[];
42
+ /**
43
+ * Used to create a new Test run
44
+ *
45
+ * @returns {Promise<any>} - resolves to Run id which should be used to update / add test
46
+ */
47
+ createRun(params: any): Promise<any>;
48
+ /**
49
+ * Updates test status and its data
50
+ *
51
+ * @param {string|undefined} status
52
+ * @param {TestData} [testData]
53
+ * @returns {Promise<PipeResult[]>}
54
+ */
55
+ addTestRun(status: string | undefined, testData?: TestData): Promise<PipeResult[]>;
56
+ /**
57
+ *
58
+ * Updates the status of the current test run and finishes the run.
59
+ * @param {'passed' | 'failed' | 'skipped' | 'finished'} status - The status of the current test run.
60
+ * Must be one of "passed", "failed", or "finished"
61
+ * @param {boolean} [isParallel] - Whether the current test run was executed in parallel with other tests.
62
+ * @returns {Promise<any>} - A Promise that resolves when finishes the run.
63
+ */
64
+ updateRunStatus(status: "passed" | "failed" | "skipped" | "finished", isParallel?: boolean): Promise<any>;
65
+ /**
66
+ * Returns the formatted stack including the stack trace, steps, and logs.
67
+ * @returns {string}
68
+ */
69
+ formatLogs({ error, steps, logs }: {
70
+ error: any;
71
+ steps: any;
72
+ logs: any;
73
+ }): string;
74
+ formatError(error: any, message: any): string;
75
+ }
76
+ import { S3Uploader } from './uploader.js';
@@ -0,0 +1 @@
1
+ export const config: NodeJS.ProcessEnv;
@@ -0,0 +1,25 @@
1
+ export const APP_PREFIX: string;
2
+ export const TESTOMAT_TMP_STORAGE_DIR: string;
3
+ export const CSV_HEADERS: {
4
+ id: string;
5
+ title: string;
6
+ }[];
7
+ export namespace STATUS {
8
+ let PASSED: string;
9
+ let FAILED: string;
10
+ let SKIPPED: string;
11
+ let FINISHED: string;
12
+ }
13
+ export namespace HTML_REPORT {
14
+ let FOLDER: string;
15
+ let REPORT_DEFAULT_NAME: string;
16
+ let TEMPLATE_NAME: string;
17
+ }
18
+ export const AXIOS_TIMEOUT: number;
19
+ export const testomatLogoURL: "https://avatars.githubusercontent.com/u/59105116?s=36&v=4";
20
+ export namespace REPORTER_REQUEST_RETRIES {
21
+ let retryTimeout: number;
22
+ let retriesPerRequest: number;
23
+ let maxTotalRetries: number;
24
+ let withinTimeSeconds: number;
25
+ }
@@ -0,0 +1,34 @@
1
+ export const dataStorage: DataStorage;
2
+ declare class DataStorage {
3
+ static "__#11@#instance": any;
4
+ /**
5
+ *
6
+ * @returns {DataStorage}
7
+ */
8
+ static getInstance(): DataStorage;
9
+ context: any;
10
+ setContext(context: any): void;
11
+ isFileStorage: boolean;
12
+ /**
13
+ * Puts any data to storage (file or global variable).
14
+ * If file: stores data as text, if global variable – stores as array of data.
15
+ * @param {'log' | 'artifact' | 'keyvalue'} dataType
16
+ * @param {*} data anything you want to store (string, object, array, etc)
17
+ * @param {*} context could be testId or any context (test name, suite name, including their IDs etc)
18
+ * suite name + test name is used by default
19
+ * @returns
20
+ */
21
+ putData(dataType: "log" | "artifact" | "keyvalue", data: any, context?: any): void;
22
+ /**
23
+ * Returns data, stored for specific test/context (or data which was stored without test id specified).
24
+ * This method will get data from global variable and/or from from file (previosly saved with put method).
25
+ *
26
+ * @param {'log' | 'artifact' | 'keyvalue'} dataType
27
+ * @param {string} context
28
+ * @returns {any []} array of data (any type), null (if no data found for context) or string (if data type is log)
29
+ */
30
+ getData(dataType: "log" | "artifact" | "keyvalue", context: string): any[];
31
+ #private;
32
+ }
33
+ export function stringToMD5Hash(str: any): string;
34
+ export {};
@@ -0,0 +1,9 @@
1
+ export default Adapter;
2
+ declare class Adapter {
3
+ constructor(opts: any);
4
+ opts: any;
5
+ getFilePath(t: any): any;
6
+ formatTest(t: any): any;
7
+ formatStack(t: any): any;
8
+ formatMessage(t: any): any;
9
+ }
@@ -0,0 +1,5 @@
1
+ export default CSharpAdapter;
2
+ declare class CSharpAdapter extends Adapter {
3
+ getFilePath(t: any): string;
4
+ }
5
+ import Adapter from './adapter.js';
@@ -0,0 +1,3 @@
1
+ export default AdapterFactory;
2
+ declare function AdapterFactory(lang: any, opts: any): Adapter;
3
+ import Adapter from './adapter.js';
@@ -0,0 +1,5 @@
1
+ export default JavaAdapter;
2
+ declare class JavaAdapter extends Adapter {
3
+ getFilePath(t: any): string;
4
+ }
5
+ import Adapter from './adapter.js';
@@ -0,0 +1,4 @@
1
+ export default JavaScriptAdapter;
2
+ declare class JavaScriptAdapter extends Adapter {
3
+ }
4
+ import Adapter from './adapter.js';
@@ -0,0 +1,5 @@
1
+ export default PythonAdapter;
2
+ declare class PythonAdapter extends Adapter {
3
+ getFilePath(t: any): string;
4
+ }
5
+ import Adapter from './adapter.js';
@@ -0,0 +1,4 @@
1
+ export default RubyAdapter;
2
+ declare class RubyAdapter extends Adapter {
3
+ }
4
+ import Adapter from './adapter.js';
@@ -0,0 +1,11 @@
1
+ export default Output;
2
+ declare class Output {
3
+ constructor(opts?: {});
4
+ filterFn: any;
5
+ reset(): void;
6
+ log: any[];
7
+ start(): void;
8
+ push(line: any): void;
9
+ text(): string;
10
+ stop(): void;
11
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @class BitbucketPipe
3
+ * @typedef {import('../../types/types.js').Pipe} Pipe
4
+ * @typedef {import('../../types/types.js').TestData} TestData
5
+ */
6
+ export class BitbucketPipe {
7
+ constructor(params: any, store?: {});
8
+ isEnabled: boolean;
9
+ ENV: NodeJS.ProcessEnv;
10
+ store: {};
11
+ tests: any[];
12
+ token: any;
13
+ hiddenCommentData: string;
14
+ cleanLog(log: any): Promise<string>;
15
+ prepareRun(): Promise<void>;
16
+ createRun(): Promise<void>;
17
+ addTest(test: any): void;
18
+ finishRun(runParams: any): Promise<void>;
19
+ toString(): string;
20
+ updateRun(): void;
21
+ }
22
+ export type Pipe = import("../../types/types.js").Pipe;
23
+ export type TestData = import("../../types/types.js").TestData;
@@ -0,0 +1,47 @@
1
+ export default CsvPipe;
2
+ export type Pipe = import("../../types/types.js").Pipe;
3
+ export type TestData = import("../../types/types.js").TestData;
4
+ /**
5
+ * @typedef {import('../../types/types.js').Pipe} Pipe
6
+ * @typedef {import('../../types/types.js').TestData} TestData
7
+ * @class CsvPipe
8
+ * @implements {Pipe}
9
+ */
10
+ declare class CsvPipe implements Pipe {
11
+ constructor(params: any, store: any);
12
+ store: any;
13
+ title: any;
14
+ results: any[];
15
+ outputDir: string;
16
+ defaultReportName: string;
17
+ csvFilename: string;
18
+ isEnabled: boolean;
19
+ outputFile: string;
20
+ prepareRun(): Promise<void>;
21
+ createRun(): Promise<void>;
22
+ updateRun(): void;
23
+ /**
24
+ * Create a folder that will contain the exported files
25
+ */
26
+ checkExportDir(): void;
27
+ /**
28
+ * Save data to the csv file.
29
+ * @param {Object} data - data that will be added to the CSV file.
30
+ * Example: [{suite_title: "Suite #1", test: "Test-case-1", message: "Test msg"}]
31
+ * @param {Object} headers - csv file headers. Example: [{ id: 'suite_title', title: 'Suite_title' }]
32
+ */
33
+ saveToCsv(data: any, headers: any): Promise<void>;
34
+ /**
35
+ * Add test data to the result array for saving. As a result of this function, we get a result object to save.
36
+ * @param {Object} test - object which includes each test entry.
37
+ */
38
+ addTest(test: any): void;
39
+ /**
40
+ * @param {{ tests?: TestData[] }} runParams
41
+ * @returns {Promise<void>}
42
+ */
43
+ finishRun(runParams: {
44
+ tests?: TestData[];
45
+ }): Promise<void>;
46
+ toString(): string;
47
+ }
@@ -0,0 +1,29 @@
1
+ export class DebugPipe {
2
+ constructor(params: any, store: any);
3
+ params: any;
4
+ store: any;
5
+ isEnabled: boolean;
6
+ batch: {
7
+ isEnabled: any;
8
+ intervalFunction: any;
9
+ intervalTime: number;
10
+ tests: any[];
11
+ batchIndex: number;
12
+ };
13
+ logFilePath: string;
14
+ testomatioEnvVars: {};
15
+ batchUpload(): Promise<void>;
16
+ /**
17
+ * Logs data to a file if logging is enabled.
18
+ *
19
+ * @param {Object} logData - The data to be logged.
20
+ * @returns {Promise<void>} A promise that resolves when the log data has been appended to the file.
21
+ */
22
+ logToFile(logData: any): Promise<void>;
23
+ lastActionTimestamp: number;
24
+ prepareRun(opts: any): Promise<any[]>;
25
+ createRun(params?: {}): Promise<{}>;
26
+ addTest(data: any): Promise<void>;
27
+ finishRun(params: any): Promise<void>;
28
+ toString(): string;
29
+ }
@@ -0,0 +1,30 @@
1
+ export default GitHubPipe;
2
+ export type Pipe = import("../../types/types.js").Pipe;
3
+ export type TestData = import("../../types/types.js").TestData;
4
+ /**
5
+ * @typedef {import('../../types/types.js').Pipe} Pipe
6
+ * @typedef {import('../../types/types.js').TestData} TestData
7
+ * @class GitHubPipe
8
+ * @implements {Pipe}
9
+ */
10
+ declare class GitHubPipe implements Pipe {
11
+ constructor(params: any, store?: {});
12
+ isEnabled: boolean;
13
+ store: {};
14
+ tests: any[];
15
+ token: any;
16
+ ref: string;
17
+ repo: string;
18
+ jobKey: string;
19
+ hiddenCommentData: string;
20
+ issue: number;
21
+ start: Date;
22
+ prepareRun(): Promise<void>;
23
+ createRun(): Promise<void>;
24
+ addTest(test: any): void;
25
+ finishRun(runParams: any): Promise<void>;
26
+ octokit: import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.js").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods").Api & {
27
+ paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
28
+ };
29
+ toString(): string;
30
+ }
@@ -0,0 +1,23 @@
1
+ export default GitLabPipe;
2
+ export type Pipe = import("../../types/types.js").Pipe;
3
+ export type TestData = import("../../types/types.js").TestData;
4
+ /**
5
+ * @class GitLabPipe
6
+ * @typedef {import('../../types/types.js').Pipe} Pipe
7
+ * @typedef {import('../../types/types.js').TestData} TestData
8
+ */
9
+ declare class GitLabPipe {
10
+ constructor(params: any, store?: {});
11
+ isEnabled: boolean;
12
+ ENV: NodeJS.ProcessEnv;
13
+ store: {};
14
+ tests: any[];
15
+ token: any;
16
+ hiddenCommentData: string;
17
+ prepareRun(): Promise<void>;
18
+ createRun(): Promise<void>;
19
+ addTest(test: any): void;
20
+ finishRun(runParams: any): Promise<void>;
21
+ toString(): string;
22
+ updateRun(): void;
23
+ }
@@ -0,0 +1,35 @@
1
+ export default HtmlPipe;
2
+ declare class HtmlPipe {
3
+ constructor(params: any, store?: {});
4
+ store: {};
5
+ title: any;
6
+ apiKey: any;
7
+ isHtml: string;
8
+ isEnabled: boolean;
9
+ htmlOutputPath: string;
10
+ fullHtmlOutputPath: string;
11
+ filenameMsg: string;
12
+ tests: any[];
13
+ htmlReportDir: string;
14
+ htmlReportName: string;
15
+ templateFolderPath: string;
16
+ templateHtmlPath: string;
17
+ createRun(): Promise<void>;
18
+ prepareRun(): Promise<void>;
19
+ updateRun(): void;
20
+ /**
21
+ * Add test data to the result array for saving. As a result of this function, we get a result object to save.
22
+ * @param {import('../../types/types.js').RunData} test - object which includes each test entry.
23
+ */
24
+ addTest(test: import("../../types/types.js").RunData): void;
25
+ finishRun(runParams: any): Promise<void>;
26
+ /**
27
+ * Generates an HTML report based on provided test data and a template.
28
+ * @param {object} opts - Test options used to generate the HTML report:
29
+ * runParams, tests, outputPath, templatePath
30
+ * @returns {void} - This function does not return anything.
31
+ */
32
+ buildReport(opts: object): void;
33
+ toString(): string;
34
+ #private;
35
+ }
@@ -0,0 +1 @@
1
+ export function pipesFactory(params: any, opts: any): Promise<any[]>;