@testomatio/reporter 2.0.1-beta.3 → 2.0.1-beta.5-timestamp

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 (148) hide show
  1. package/lib/adapter/codecept.js +335 -293
  2. package/lib/adapter/cucumber/current.js +203 -195
  3. package/lib/adapter/cucumber/legacy.js +155 -130
  4. package/lib/adapter/cucumber.js +16 -5
  5. package/lib/adapter/cypress-plugin/index.js +105 -91
  6. package/lib/adapter/jasmine.js +53 -54
  7. package/lib/adapter/jest.js +99 -97
  8. package/lib/adapter/mocha.js +141 -112
  9. package/lib/adapter/playwright.js +231 -199
  10. package/lib/adapter/vitest.js +149 -150
  11. package/lib/adapter/webdriver.js +121 -144
  12. package/lib/bin/cli.js +211 -229
  13. package/lib/bin/reportXml.js +52 -51
  14. package/lib/bin/startTest.js +95 -83
  15. package/lib/bin/uploadArtifacts.js +61 -56
  16. package/lib/client.js +465 -424
  17. package/lib/config.js +23 -18
  18. package/lib/constants.js +44 -50
  19. package/lib/data-storage.js +188 -216
  20. package/lib/junit-adapter/adapter.js +20 -17
  21. package/lib/junit-adapter/csharp.js +14 -28
  22. package/lib/junit-adapter/index.js +25 -27
  23. package/lib/junit-adapter/java.js +53 -41
  24. package/lib/junit-adapter/javascript.js +27 -30
  25. package/lib/junit-adapter/python.js +37 -38
  26. package/lib/junit-adapter/ruby.js +8 -11
  27. package/lib/output.js +52 -44
  28. package/lib/pipe/bitbucket.js +230 -223
  29. package/lib/pipe/csv.js +126 -113
  30. package/lib/pipe/debug.js +99 -118
  31. package/lib/pipe/github.js +213 -218
  32. package/lib/pipe/gitlab.js +206 -183
  33. package/lib/pipe/html.js +321 -258
  34. package/lib/pipe/index.js +66 -94
  35. package/lib/pipe/testomatio.js +474 -429
  36. package/lib/reporter-functions.js +26 -28
  37. package/lib/reporter.js +29 -34
  38. package/lib/services/artifacts.js +51 -55
  39. package/lib/services/index.js +12 -14
  40. package/lib/services/key-values.js +53 -56
  41. package/lib/services/logger.js +245 -226
  42. package/lib/template/testomatio.hbs +1366 -1026
  43. package/lib/uploader.js +364 -295
  44. package/lib/utils/pipe_utils.js +85 -89
  45. package/lib/utils/utils.js +307 -398
  46. package/lib/xmlReader.js +532 -525
  47. package/package.json +21 -64
  48. package/lib/adapter/codecept.d.ts +0 -2
  49. package/lib/adapter/cucumber/current.d.ts +0 -14
  50. package/lib/adapter/cucumber/legacy.d.ts +0 -0
  51. package/lib/adapter/cucumber.d.ts +0 -2
  52. package/lib/adapter/cypress-plugin/index.d.ts +0 -2
  53. package/lib/adapter/jasmine.d.ts +0 -11
  54. package/lib/adapter/jest.d.ts +0 -13
  55. package/lib/adapter/mocha.d.ts +0 -2
  56. package/lib/adapter/nightwatch.d.ts +0 -4
  57. package/lib/adapter/nightwatch.js +0 -80
  58. package/lib/adapter/playwright.d.ts +0 -14
  59. package/lib/adapter/vitest.d.ts +0 -35
  60. package/lib/adapter/webdriver.d.ts +0 -24
  61. package/lib/bin/cli.d.ts +0 -2
  62. package/lib/bin/reportXml.d.ts +0 -2
  63. package/lib/bin/startTest.d.ts +0 -2
  64. package/lib/bin/uploadArtifacts.d.ts +0 -2
  65. package/lib/client.d.ts +0 -76
  66. package/lib/config.d.ts +0 -1
  67. package/lib/constants.d.ts +0 -25
  68. package/lib/data-storage.d.ts +0 -34
  69. package/lib/junit-adapter/adapter.d.ts +0 -9
  70. package/lib/junit-adapter/csharp.d.ts +0 -5
  71. package/lib/junit-adapter/index.d.ts +0 -3
  72. package/lib/junit-adapter/java.d.ts +0 -5
  73. package/lib/junit-adapter/javascript.d.ts +0 -4
  74. package/lib/junit-adapter/python.d.ts +0 -5
  75. package/lib/junit-adapter/ruby.d.ts +0 -4
  76. package/lib/output.d.ts +0 -11
  77. package/lib/package.json +0 -3
  78. package/lib/pipe/bitbucket.d.ts +0 -25
  79. package/lib/pipe/csv.d.ts +0 -47
  80. package/lib/pipe/debug.d.ts +0 -29
  81. package/lib/pipe/github.d.ts +0 -30
  82. package/lib/pipe/gitlab.d.ts +0 -25
  83. package/lib/pipe/html.d.ts +0 -35
  84. package/lib/pipe/index.d.ts +0 -1
  85. package/lib/pipe/testomatio.d.ts +0 -71
  86. package/lib/replay.d.ts +0 -31
  87. package/lib/replay.js +0 -237
  88. package/lib/reporter-functions.d.ts +0 -34
  89. package/lib/reporter.d.ts +0 -232
  90. package/lib/services/artifacts.d.ts +0 -33
  91. package/lib/services/index.d.ts +0 -9
  92. package/lib/services/key-values.d.ts +0 -27
  93. package/lib/services/logger.d.ts +0 -64
  94. package/lib/uploader.d.ts +0 -60
  95. package/lib/utils/pipe_utils.d.ts +0 -41
  96. package/lib/utils/utils.d.ts +0 -54
  97. package/lib/xmlReader.d.ts +0 -92
  98. package/src/adapter/codecept.js +0 -373
  99. package/src/adapter/cucumber/current.js +0 -228
  100. package/src/adapter/cucumber/legacy.js +0 -158
  101. package/src/adapter/cucumber.js +0 -4
  102. package/src/adapter/cypress-plugin/index.js +0 -110
  103. package/src/adapter/jasmine.js +0 -60
  104. package/src/adapter/jest.js +0 -107
  105. package/src/adapter/mocha.cjs +0 -2
  106. package/src/adapter/mocha.js +0 -156
  107. package/src/adapter/nightwatch.js +0 -88
  108. package/src/adapter/playwright.js +0 -254
  109. package/src/adapter/vitest.js +0 -183
  110. package/src/adapter/webdriver.js +0 -142
  111. package/src/bin/cli.js +0 -348
  112. package/src/bin/reportXml.js +0 -77
  113. package/src/bin/startTest.js +0 -124
  114. package/src/bin/uploadArtifacts.js +0 -91
  115. package/src/client.js +0 -508
  116. package/src/config.js +0 -30
  117. package/src/constants.js +0 -53
  118. package/src/data-storage.js +0 -204
  119. package/src/junit-adapter/adapter.js +0 -23
  120. package/src/junit-adapter/csharp.js +0 -28
  121. package/src/junit-adapter/index.js +0 -28
  122. package/src/junit-adapter/java.js +0 -58
  123. package/src/junit-adapter/javascript.js +0 -31
  124. package/src/junit-adapter/python.js +0 -42
  125. package/src/junit-adapter/ruby.js +0 -10
  126. package/src/output.js +0 -57
  127. package/src/pipe/bitbucket.js +0 -252
  128. package/src/pipe/csv.js +0 -140
  129. package/src/pipe/debug.js +0 -119
  130. package/src/pipe/github.js +0 -232
  131. package/src/pipe/gitlab.js +0 -247
  132. package/src/pipe/html.js +0 -373
  133. package/src/pipe/index.js +0 -71
  134. package/src/pipe/testomatio.js +0 -504
  135. package/src/replay.js +0 -245
  136. package/src/reporter-functions.js +0 -55
  137. package/src/reporter.cjs_decprecated +0 -21
  138. package/src/reporter.js +0 -33
  139. package/src/services/artifacts.js +0 -59
  140. package/src/services/index.js +0 -13
  141. package/src/services/key-values.js +0 -59
  142. package/src/services/logger.js +0 -315
  143. package/src/template/emptyData.svg +0 -23
  144. package/src/template/testomatio.hbs +0 -1081
  145. package/src/uploader.js +0 -376
  146. package/src/utils/pipe_utils.js +0 -119
  147. package/src/utils/utils.js +0 -416
  148. package/src/xmlReader.js +0 -614
package/lib/reporter.d.ts DELETED
@@ -1,232 +0,0 @@
1
- export type artifact = typeof import("./reporter-functions.js");
2
- export const artifact: (data: string | {
3
- path: string;
4
- type: string;
5
- name: string;
6
- }, context?: any) => void;
7
- export type log = typeof import("./reporter-functions.js");
8
- export const log: (...args: any[]) => void;
9
- export type logger = typeof import("./services/index.js");
10
- export const logger: {
11
- "__#13@#originalUserLogger": {
12
- assert(condition?: boolean, ...data: any[]): void;
13
- assert(value: any, message?: string, ...optionalParams: any[]): void;
14
- clear(): void;
15
- clear(): void;
16
- count(label?: string): void;
17
- count(label?: string): void;
18
- countReset(label?: string): void;
19
- countReset(label?: string): void;
20
- debug(...data: any[]): void;
21
- debug(message?: any, ...optionalParams: any[]): void;
22
- dir(item?: any, options?: any): void;
23
- dir(obj: any, options?: import("util").InspectOptions): void;
24
- dirxml(...data: any[]): void;
25
- dirxml(...data: any[]): void;
26
- error(...data: any[]): void;
27
- error(message?: any, ...optionalParams: any[]): void;
28
- group(...data: any[]): void;
29
- group(...label: any[]): void;
30
- groupCollapsed(...data: any[]): void;
31
- groupCollapsed(...label: any[]): void;
32
- groupEnd(): void;
33
- groupEnd(): void;
34
- info(...data: any[]): void;
35
- info(message?: any, ...optionalParams: any[]): void;
36
- log(...data: any[]): void;
37
- log(message?: any, ...optionalParams: any[]): void;
38
- table(tabularData?: any, properties?: string[]): void;
39
- table(tabularData: any, properties?: readonly string[]): void;
40
- time(label?: string): void;
41
- time(label?: string): void;
42
- timeEnd(label?: string): void;
43
- timeEnd(label?: string): void;
44
- timeLog(label?: string, ...data: any[]): void;
45
- timeLog(label?: string, ...data: any[]): void;
46
- timeStamp(label?: string): void;
47
- timeStamp(label?: string): void;
48
- trace(...data: any[]): void;
49
- trace(message?: any, ...optionalParams: any[]): void;
50
- warn(...data: any[]): void;
51
- warn(message?: any, ...optionalParams: any[]): void;
52
- Console: console.ConsoleConstructor;
53
- profile(label?: string): void;
54
- profileEnd(label?: string): void;
55
- };
56
- "__#13@#userLoggerWithOverridenMethods": any;
57
- logLevel: string;
58
- step(strings: any, ...values: any[]): void;
59
- getLogs(context: string): string[];
60
- "__#13@#stringifyLogs"(...args: any[]): string;
61
- _templateLiteralLog(strings: any, ...args: any[]): void;
62
- "__#13@#logWrapper"(argsArray: any, level: any): void;
63
- assert(...args: any[]): void;
64
- debug(...args: any[]): void;
65
- error(...args: any[]): void;
66
- info(...args: any[]): void;
67
- log(...args: any[]): void;
68
- trace(...args: any[]): void;
69
- warn(...args: any[]): void;
70
- intercept(userLogger: any): void;
71
- stopInterception(): void;
72
- configure(config?: {
73
- logLevel?: string;
74
- prettyObjects?: boolean;
75
- }): void;
76
- prettyObjects: boolean;
77
- };
78
- export type meta = typeof import("./reporter-functions.js");
79
- export const meta: (keyValue: {
80
- [key: string]: string;
81
- } | string, value?: string | null) => void;
82
- export type step = typeof import("./reporter-functions.js");
83
- export const step: (message: string) => void;
84
- declare namespace _default {
85
- let testomatioLogger: {
86
- "__#13@#originalUserLogger": {
87
- assert(condition?: boolean, ...data: any[]): void;
88
- assert(value: any, message?: string, ...optionalParams: any[]): void;
89
- clear(): void;
90
- clear(): void;
91
- count(label?: string): void;
92
- count(label?: string): void;
93
- countReset(label?: string): void;
94
- countReset(label?: string): void;
95
- debug(...data: any[]): void;
96
- debug(message?: any, ...optionalParams: any[]): void;
97
- dir(item?: any, options?: any): void;
98
- dir(obj: any, options?: import("util").InspectOptions): void;
99
- dirxml(...data: any[]): void;
100
- dirxml(...data: any[]): void;
101
- error(...data: any[]): void;
102
- error(message?: any, ...optionalParams: any[]): void;
103
- group(...data: any[]): void;
104
- group(...label: any[]): void;
105
- groupCollapsed(...data: any[]): void;
106
- groupCollapsed(...label: any[]): void;
107
- groupEnd(): void;
108
- groupEnd(): void;
109
- info(...data: any[]): void;
110
- info(message?: any, ...optionalParams: any[]): void;
111
- log(...data: any[]): void;
112
- log(message?: any, ...optionalParams: any[]): void;
113
- table(tabularData?: any, properties?: string[]): void;
114
- table(tabularData: any, properties?: readonly string[]): void;
115
- time(label?: string): void;
116
- time(label?: string): void;
117
- timeEnd(label?: string): void;
118
- timeEnd(label?: string): void;
119
- timeLog(label?: string, ...data: any[]): void;
120
- timeLog(label?: string, ...data: any[]): void;
121
- timeStamp(label?: string): void;
122
- timeStamp(label?: string): void;
123
- trace(...data: any[]): void;
124
- trace(message?: any, ...optionalParams: any[]): void;
125
- warn(...data: any[]): void;
126
- warn(message?: any, ...optionalParams: any[]): void;
127
- Console: console.ConsoleConstructor;
128
- profile(label?: string): void;
129
- profileEnd(label?: string): void;
130
- };
131
- "__#13@#userLoggerWithOverridenMethods": any;
132
- logLevel: string;
133
- step(strings: any, ...values: any[]): void;
134
- getLogs(context: string): string[];
135
- "__#13@#stringifyLogs"(...args: any[]): string;
136
- _templateLiteralLog(strings: any, ...args: any[]): void;
137
- "__#13@#logWrapper"(argsArray: any, level: any): void;
138
- assert(...args: any[]): void;
139
- debug(...args: any[]): void;
140
- error(...args: any[]): void;
141
- info(...args: any[]): void;
142
- log(...args: any[]): void;
143
- trace(...args: any[]): void;
144
- warn(...args: any[]): void;
145
- intercept(userLogger: any): void;
146
- stopInterception(): void;
147
- configure(config?: {
148
- logLevel?: string;
149
- prettyObjects?: boolean;
150
- }): void;
151
- prettyObjects: boolean;
152
- };
153
- let artifact: (data: string | {
154
- path: string;
155
- type: string;
156
- name: string;
157
- }, context?: any) => void;
158
- let log: (...args: any[]) => void;
159
- let logger: {
160
- "__#13@#originalUserLogger": {
161
- assert(condition?: boolean, ...data: any[]): void;
162
- assert(value: any, message?: string, ...optionalParams: any[]): void;
163
- clear(): void;
164
- clear(): void;
165
- count(label?: string): void;
166
- count(label?: string): void;
167
- countReset(label?: string): void;
168
- countReset(label?: string): void;
169
- debug(...data: any[]): void;
170
- debug(message?: any, ...optionalParams: any[]): void;
171
- dir(item?: any, options?: any): void;
172
- dir(obj: any, options?: import("util").InspectOptions): void;
173
- dirxml(...data: any[]): void;
174
- dirxml(...data: any[]): void;
175
- error(...data: any[]): void;
176
- error(message?: any, ...optionalParams: any[]): void;
177
- group(...data: any[]): void;
178
- group(...label: any[]): void;
179
- groupCollapsed(...data: any[]): void;
180
- groupCollapsed(...label: any[]): void;
181
- groupEnd(): void;
182
- groupEnd(): void;
183
- info(...data: any[]): void;
184
- info(message?: any, ...optionalParams: any[]): void;
185
- log(...data: any[]): void;
186
- log(message?: any, ...optionalParams: any[]): void;
187
- table(tabularData?: any, properties?: string[]): void;
188
- table(tabularData: any, properties?: readonly string[]): void;
189
- time(label?: string): void;
190
- time(label?: string): void;
191
- timeEnd(label?: string): void;
192
- timeEnd(label?: string): void;
193
- timeLog(label?: string, ...data: any[]): void;
194
- timeLog(label?: string, ...data: any[]): void;
195
- timeStamp(label?: string): void;
196
- timeStamp(label?: string): void;
197
- trace(...data: any[]): void;
198
- trace(message?: any, ...optionalParams: any[]): void;
199
- warn(...data: any[]): void;
200
- warn(message?: any, ...optionalParams: any[]): void;
201
- Console: console.ConsoleConstructor;
202
- profile(label?: string): void;
203
- profileEnd(label?: string): void;
204
- };
205
- "__#13@#userLoggerWithOverridenMethods": any;
206
- logLevel: string;
207
- step(strings: any, ...values: any[]): void;
208
- getLogs(context: string): string[];
209
- "__#13@#stringifyLogs"(...args: any[]): string;
210
- _templateLiteralLog(strings: any, ...args: any[]): void;
211
- "__#13@#logWrapper"(argsArray: any, level: any): void;
212
- assert(...args: any[]): void;
213
- debug(...args: any[]): void;
214
- error(...args: any[]): void;
215
- info(...args: any[]): void;
216
- log(...args: any[]): void;
217
- trace(...args: any[]): void;
218
- warn(...args: any[]): void;
219
- intercept(userLogger: any): void;
220
- stopInterception(): void;
221
- configure(config?: {
222
- logLevel?: string;
223
- prettyObjects?: boolean;
224
- }): void;
225
- prettyObjects: boolean;
226
- };
227
- let meta: (keyValue: {
228
- [key: string]: string;
229
- } | string, value?: string | null) => void;
230
- let step: (message: string) => void;
231
- }
232
- export default _default;
@@ -1,33 +0,0 @@
1
- export const artifactStorage: ArtifactStorage;
2
- /**
3
- * Artifact storage is supposed to store file paths
4
- */
5
- declare class ArtifactStorage {
6
- static "__#14@#instance": any;
7
- /**
8
- * Singleton
9
- * @returns {ArtifactStorage}
10
- */
11
- static getInstance(): ArtifactStorage;
12
- /**
13
- * Stores path to file as artifact and uploads it to the S3 storage
14
- * @param {string | {path: string, type: string, name: string}} data - path to file or object with path, type and name
15
- * @param {*} context testId or test title
16
- */
17
- put(data: string | {
18
- path: string;
19
- type: string;
20
- name: string;
21
- }, context?: any): void;
22
- /**
23
- * Returns list of artifacts to upload
24
- * @param {*} context testId or test context from test runner
25
- * @returns {(string | {path: string, type: string, name: string})[]}
26
- */
27
- get(context: any): (string | {
28
- path: string;
29
- type: string;
30
- name: string;
31
- })[];
32
- }
33
- export {};
@@ -1,9 +0,0 @@
1
- export namespace services {
2
- export { logger };
3
- export { artifactStorage as artifacts };
4
- export { keyValueStorage as keyValues };
5
- export function setContext(context: any): void;
6
- }
7
- import { logger } from './logger.js';
8
- import { artifactStorage } from './artifacts.js';
9
- import { keyValueStorage } from './key-values.js';
@@ -1,27 +0,0 @@
1
- export const keyValueStorage: KeyValueStorage;
2
- declare class KeyValueStorage {
3
- static "__#15@#instance": any;
4
- /**
5
- *
6
- * @returns {KeyValueStorage}
7
- */
8
- static getInstance(): KeyValueStorage;
9
- /**
10
- * Stores key-value pair and passes it to reporter
11
- * @param {{[key: string]: string}} keyValue - key-value pair(s) as object
12
- * @param {*} context - full test title
13
- */
14
- put(keyValue: {
15
- [key: string]: string;
16
- }, context?: any): void;
17
- /**
18
- * Returns key-values pairs for the test as object
19
- * @param {*} context testId or test context from test runner
20
- * @returns {{[key: string]: string} | {}} key-values pairs as object, e.g. {priority: 'high', browser: 'chrome'}
21
- */
22
- get(context?: any): {
23
- [key: string]: string;
24
- } | {};
25
- #private;
26
- }
27
- export {};
@@ -1,64 +0,0 @@
1
- export const logger: Logger;
2
- /**
3
- * Logger allows to intercept logs from any logger (console.log, tracer, pino, etc)
4
- * and save in the testomatio reporter.
5
- * Supports different syntaxes to satisfy any user preferences.
6
- */
7
- declare class Logger {
8
- static "__#13@#instance": any;
9
- /**
10
- *
11
- * @returns {Logger}
12
- */
13
- static getInstance(): Logger;
14
- logLevel: string;
15
- /**
16
- * Allows you to define a step inside a test. Step name is attached to the report and
17
- * helps to understand the test flow.
18
- * @param {*} strings
19
- * @param {...any} values
20
- */
21
- step(strings: any, ...values: any[]): void;
22
- /**
23
- *
24
- * @param {string} context testId or test context from test runner
25
- * @returns {string[]}
26
- */
27
- getLogs(context: string): string[];
28
- /**
29
- * Tagget template literal. Allows to use different syntaxes:
30
- * 1. Tagget template: log`text ${someVar}`
31
- * 2. Standard: log(`text ${someVar}`)
32
- * 3. Standard with multiple arguments: log('text', someVar)
33
- */
34
- _templateLiteralLog(strings: any, ...args: any[]): void;
35
- assert(...args: any[]): void;
36
- debug(...args: any[]): void;
37
- error(...args: any[]): void;
38
- info(...args: any[]): void;
39
- log(...args: any[]): void;
40
- trace(...args: any[]): void;
41
- warn(...args: any[]): void;
42
- /**
43
- * Intercepts user logger messages.
44
- * When call this method, Logger start to control the user logger
45
- * @param {*} userLogger
46
- */
47
- intercept(userLogger: any): void;
48
- stopInterception(): void;
49
- /**
50
- * Allows to configure logger. Make sure you do it before the logger usage in your code.
51
- *
52
- * @param {Object} [config={}] - The configuration object.
53
- * @param {string} [config.logLevel] - The desired log level. Valid values are 'DEBUG', 'INFO', 'WARN', and 'ERROR'.
54
- * @param {boolean} [config.prettyObjects] - Specifies whether to enable pretty printing of objects.
55
- * @returns {void}
56
- */
57
- configure(config?: {
58
- logLevel?: string;
59
- prettyObjects?: boolean;
60
- }): void;
61
- prettyObjects: boolean;
62
- #private;
63
- }
64
- export {};
package/lib/uploader.d.ts DELETED
@@ -1,60 +0,0 @@
1
- export class S3Uploader {
2
- isEnabled: any;
3
- storeEnabled: boolean;
4
- config: {};
5
- /**
6
- * @type {{path: string, size: number}[]}
7
- */
8
- skippedUploads: {
9
- path: string;
10
- size: number;
11
- }[];
12
- failedUploads: any[];
13
- /**
14
- * @type {{path: string, size: number, link: string}[]}
15
- */
16
- successfulUploads: {
17
- path: string;
18
- size: number;
19
- link: string;
20
- }[];
21
- configKeys: string[];
22
- resetConfig(): void;
23
- /**
24
- *
25
- * @returns {Record<string, string>}
26
- */
27
- getConfig(): Record<string, string>;
28
- getMaskedConfig(): {
29
- [k: string]: string;
30
- };
31
- checkEnabled(): any;
32
- enableLogStorage(): void;
33
- disableLogStorage(): void;
34
- /**
35
- * Returns an array of uploaded files
36
- *
37
- * @returns {{rid: string, file: string, uploaded: boolean}[]}
38
- */
39
- readUploadedFiles(runId: any): {
40
- rid: string;
41
- file: string;
42
- uploaded: boolean;
43
- }[];
44
- storeUploadedFile(filePath: any, runId: any, rid: any, uploaded?: boolean): void;
45
- /**
46
- * @param {*} filePath
47
- * @param {*} pathInS3 contains runId, rid and filename
48
- * @returns
49
- */
50
- uploadFileByPath(filePath: any, pathInS3: any): Promise<any>;
51
- /**
52
- * @param {Buffer} buffer
53
- * @param {string[]} pathInS3
54
- * @returns
55
- */
56
- uploadFileAsBuffer(buffer: Buffer, pathInS3: string[]): Promise<any>;
57
- checkArtifactExistsInFileSystem(filePath: any, attempts?: number, intervalMs?: number): Promise<any>;
58
- getS3LocationLink(out: any): Promise<any>;
59
- #private;
60
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * Update and validate the filter type.
3
- * @param {string} type - The original filter type.
4
- * @returns {string|undefined} The updated and validated filter type.
5
- * Returns undefined if the type is not valid.
6
- */
7
- export function updateFilterType(type: string): string | undefined;
8
- /**
9
- * Parse filter parameters from a string in the format "type=id".
10
- * @param {string} opts - The input string containing the filter parameters.
11
- * @returns {Object} An object containing the parsed filter parameters.
12
- * The object has properties "type" and "id".
13
- */
14
- export function parseFilterParams(opts: string): any;
15
- /**
16
- * Generates mode request parameters based on the input params.
17
- * @param {{type: string, id?: string, apiKey: string}} params - The input parameters for the request.
18
- * @returns {Object|null} - An object containing the generated request parameters, or null if the type is invalid.
19
- */
20
- export function generateFilterRequestParams(params: {
21
- type: string;
22
- id?: string;
23
- apiKey: string;
24
- }): any | null;
25
- /**
26
- * Set S3 credentials from the provided artifacts object.
27
- * @param {Object} artifacts - The artifacts object containing S3 credentials.
28
- */
29
- export function setS3Credentials(artifacts: any): void;
30
- /**
31
- * Return an emoji based on the provided status.
32
- * @param {string} status - The status value ('passed', 'failed', or 'skipped').
33
- * @returns {string} - An emoji corresponding to the provided status.
34
- */
35
- export function statusEmoji(status: string): string;
36
- /**
37
- * Generate a full name string based on the provided test object.
38
- * @param {object} t - The test object.
39
- * @returns {string} - A formatted full name string for the test object.
40
- */
41
- export function fullName(t: object): string;
@@ -1,54 +0,0 @@
1
- export function getPackageVersion(): any;
2
- export const TEST_ID_REGEX: RegExp;
3
- export const SUITE_ID_REGEX: RegExp;
4
- export function ansiRegExp(): RegExp;
5
- export function isSameTest(test: any, t: any): boolean;
6
- export function fetchSourceCode(contents: any, opts?: {}): string;
7
- export function fetchSourceCodeFromStackTrace(stack?: string): string;
8
- export function fetchIdFromCode(code: any, opts?: {}): any;
9
- export function fetchIdFromOutput(output: any): any;
10
- export function fetchFilesFromStackTrace(stack?: string, checkExists?: boolean): string[];
11
- export namespace fileSystem {
12
- function createDir(dirPath: any): void;
13
- function clearDir(dirPath: any): void;
14
- }
15
- export function foundedTestLog(app: any, tests: any): void;
16
- export function formatStep(step: any, shift?: number): any;
17
- export function getCurrentDateTime(): string;
18
- /**
19
- * @param {String} testTitle - Test title
20
- *
21
- * @returns {String|null} testId
22
- */
23
- export function getTestomatIdFromTestTitle(testTitle: string): string | null;
24
- export function humanize(text: any): any;
25
- export function isValidUrl(s: any): boolean;
26
- /**
27
- * @param {String} suiteTitle - suite title
28
- *
29
- * @returns {String|null} suiteId
30
- */
31
- export function parseSuite(suiteTitle: string): string | null;
32
- export function readLatestRunId(): string;
33
- /**
34
- * Used to remove color codes
35
- * @param {*} input
36
- * @returns
37
- */
38
- export function removeColorCodes(input: any): any;
39
- /**
40
- * @param {Object} test - Test adapter object
41
- *
42
- * @returns {String|null} testInfo as one string
43
- */
44
- export function specificTestInfo(test: any): string | null;
45
- export function storeRunId(runId: any): void;
46
- export namespace testRunnerHelper {
47
- function getNameOfCurrentlyRunningTest(): any;
48
- }
49
- /**
50
- * Validates TESTOMATIO_SUITE environment variable format
51
- * @param {String} suiteId - suite ID to validate
52
- * @returns {String|null} validated suite ID or null if invalid
53
- */
54
- export function validateSuiteId(suiteId: string): string | null;
@@ -1,92 +0,0 @@
1
- export default XmlReader;
2
- declare class XmlReader {
3
- constructor(opts?: {});
4
- requestParams: {
5
- apiKey: any;
6
- url: any;
7
- title: string;
8
- env: string;
9
- group_title: string;
10
- detach: string;
11
- isBatchEnabled: boolean;
12
- };
13
- runId: any;
14
- adapter: import("./junit-adapter/adapter.js").default;
15
- opts: {};
16
- store: {};
17
- pipesPromise: Promise<any[]>;
18
- parser: XMLParser;
19
- tests: any[];
20
- stats: {};
21
- uploader: S3Uploader;
22
- version: any;
23
- connectAdapter(): import("./junit-adapter/adapter.js").default;
24
- parse(fileName: any): {
25
- status: string;
26
- create_tests: boolean;
27
- tests_count: number;
28
- passed_count: number;
29
- skipped_count: number;
30
- failed_count: number;
31
- tests: any;
32
- } | {
33
- status: any;
34
- create_tests: boolean;
35
- tests_count: number;
36
- passed_count: number;
37
- failed_count: number;
38
- skipped_count: number;
39
- tests: any[];
40
- };
41
- processJUnit(jsonSuite: any): {
42
- create_tests: boolean;
43
- duration: number;
44
- failed_count: number;
45
- name: any;
46
- passed_count: number;
47
- skipped_count: number;
48
- status: string;
49
- tests: any[];
50
- tests_count: number;
51
- };
52
- processNUnit(jsonSuite: any): {
53
- status: any;
54
- create_tests: boolean;
55
- tests_count: number;
56
- passed_count: number;
57
- failed_count: number;
58
- skipped_count: number;
59
- tests: any[];
60
- };
61
- processTRX(jsonSuite: any): {
62
- status: string;
63
- create_tests: boolean;
64
- tests_count: number;
65
- passed_count: number;
66
- skipped_count: number;
67
- failed_count: number;
68
- tests: any;
69
- };
70
- processXUnit(assemblies: any): {
71
- status: string;
72
- create_tests: boolean;
73
- name: string;
74
- tests_count: number;
75
- passed_count: number;
76
- failed_count: number;
77
- skipped_count: number;
78
- tests: any[];
79
- };
80
- calculateStats(): {};
81
- fetchSourceCode(): void;
82
- formatTests(): void;
83
- formatErrors(): void;
84
- formatStack(t: any): any;
85
- uploadArtifacts(): Promise<void>;
86
- createRun(): Promise<any[]>;
87
- pipes: any;
88
- uploadData(): Promise<any[]>;
89
- _finishRun(): Promise<any[]>;
90
- }
91
- import { XMLParser } from 'fast-xml-parser';
92
- import { S3Uploader } from './uploader.js';