@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/src/pipe/html.js DELETED
@@ -1,373 +0,0 @@
1
- import createDebugMessages from 'debug';
2
- import merge from 'lodash.merge';
3
- import fs from 'fs';
4
- import path from 'path';
5
- import pc from 'picocolors';
6
- import handlebars from 'handlebars';
7
- import fileUrl from 'file-url';
8
- import { fileSystem, isSameTest, ansiRegExp, formatStep } from '../utils/utils.js';
9
- import { HTML_REPORT } from '../constants.js';
10
- import { fileURLToPath } from 'node:url';
11
-
12
- const debug = createDebugMessages('@testomatio/reporter:pipe:html');
13
-
14
- // @ts-ignore – this line will be removed in compiled code (already defined in the global scope of commonjs)
15
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
16
-
17
- class HtmlPipe {
18
- constructor(params, store = {}) {
19
- this.store = store || {};
20
- this.title = params.title || process.env.TESTOMATIO_TITLE;
21
- this.apiKey = params.apiKey || process.env.TESTOMATIO;
22
- this.isHtml = process.env.TESTOMATIO_HTML_REPORT_SAVE;
23
-
24
- debug('HTML Pipe: ', this.apiKey ? 'API KEY' : '*no api key provided*');
25
-
26
- this.isEnabled = false;
27
- this.htmlOutputPath = '';
28
- this.fullHtmlOutputPath = '';
29
- this.filenameMsg = '';
30
- this.tests = [];
31
-
32
- if (this.isHtml) {
33
- this.isEnabled = true;
34
- this.htmlReportDir = process.env.TESTOMATIO_HTML_REPORT_FOLDER || HTML_REPORT.FOLDER;
35
-
36
- if (process.env.TESTOMATIO_HTML_FILENAME && process.env.TESTOMATIO_HTML_FILENAME.endsWith('.html')) {
37
- this.htmlReportName = process.env.TESTOMATIO_HTML_FILENAME;
38
- }
39
-
40
- if (process.env.TESTOMATIO_HTML_FILENAME && !process.env.TESTOMATIO_HTML_FILENAME.endsWith('.html')) {
41
- this.htmlReportName = HTML_REPORT.REPORT_DEFAULT_NAME;
42
- this.filenameMsg =
43
- 'HTML filename must include the extension ".html".' +
44
- ` The default report name "${this.htmlReportDir}/${HTML_REPORT.REPORT_DEFAULT_NAME}" is used!`;
45
- }
46
-
47
- if (!process.env.TESTOMATIO_HTML_FILENAME) {
48
- this.htmlReportName = HTML_REPORT.REPORT_DEFAULT_NAME;
49
- }
50
-
51
- this.templateFolderPath = path.resolve(__dirname, '..', 'template');
52
- this.templateHtmlPath = path.resolve(this.templateFolderPath, HTML_REPORT.TEMPLATE_NAME);
53
- this.htmlOutputPath = path.join(this.htmlReportDir, this.htmlReportName);
54
- // create a new folder for the HTML reports
55
- fileSystem.createDir(this.htmlReportDir);
56
-
57
- debug(
58
- pc.yellow('HTML Pipe:'),
59
- `Save HTML report: ${this.isEnabled}`,
60
- `HTML report folder: ${this.htmlReportDir}, report name: ${this.htmlReportName}`,
61
- );
62
- }
63
- }
64
-
65
- async createRun() {
66
- // empty
67
- }
68
-
69
- async prepareRun() {}
70
-
71
- updateRun() {
72
- // empty
73
- }
74
-
75
- /**
76
- * Add test data to the result array for saving. As a result of this function, we get a result object to save.
77
- * @param {import('../../types/types.js').RunData} test - object which includes each test entry.
78
- */
79
- addTest(test) {
80
- if (!this.isEnabled) return;
81
-
82
- if (!test.status) return;
83
-
84
- const index = this.tests.findIndex(t => isSameTest(t, test));
85
- // update if they were already added
86
- if (index >= 0) {
87
- this.tests[index] = merge(this.tests[index], test);
88
- return;
89
- }
90
-
91
- this.tests.push(test);
92
- }
93
-
94
- async finishRun(runParams) {
95
- if (!this.isEnabled) return;
96
-
97
- if (this.isHtml) {
98
- // GENERATE HTML reports based on the results data
99
- this.buildReport({
100
- runParams,
101
- // TODO: this.tests=[] in case of Mocha, need retest by Vitalii
102
- tests: this.tests,
103
- outputPath: this.htmlOutputPath,
104
- templatePath: this.templateHtmlPath,
105
- warningMsg: this.filenameMsg,
106
- });
107
- }
108
- }
109
- /**
110
- * Generates an HTML report based on provided test data and a template.
111
- * @param {object} opts - Test options used to generate the HTML report:
112
- * runParams, tests, outputPath, templatePath
113
- * @returns {void} - This function does not return anything.
114
- */
115
-
116
- buildReport(opts) {
117
- const { runParams, tests, outputPath, templatePath, warningMsg: msg } = opts;
118
-
119
- debug('HTML tests data:', tests);
120
-
121
- if (!outputPath) {
122
- console.log(pc.yellow(`🚨 HTML export path is not set, ignoring...`));
123
- return;
124
- }
125
-
126
- console.log(pc.yellow(`⏳ The test results will be added to the HTML report. It will take some time...`));
127
-
128
- if (msg) {
129
- console.log(pc.blue(msg));
130
- }
131
-
132
- tests.forEach(test => {
133
- // steps could be an array or a string
134
- test.steps = Array.isArray(test.steps)
135
- ? (test.steps = test.steps
136
- .map(step => formatStep(step))
137
- .flat()
138
- .join('\n'))
139
- : test.steps;
140
-
141
- if (!test.message?.trim()) {
142
- test.message = "This test has no 'message' code";
143
- }
144
-
145
- if (!test.suite_title?.trim()) {
146
- test.suite_title = 'Unknown suite';
147
- }
148
-
149
- if (!test.title?.trim()) {
150
- test.title = 'Unknown test title';
151
- }
152
-
153
- if (!test.files?.length) {
154
- test.files = 'This test has no files';
155
- }
156
-
157
- if (!test.steps?.trim()) {
158
- test.steps = "This test has no 'steps' code";
159
- } else {
160
- test.steps = removeAnsiColorCodes(test.steps);
161
- }
162
-
163
- // TODO: future-proof: currently there is no need to display Artifacts and Metadata in HTML
164
- test.artifacts = test.artifacts || [];
165
- test.meta = test.meta || {};
166
- // TODO: u can added an additional test values to this checks in the future
167
- });
168
-
169
- const data = {
170
- runId: this.store.runId || '',
171
- status: runParams.status || 'No status info',
172
- parallel: runParams.isParallel || 'No parallel info',
173
- runUrl: this.store.runUrl || '',
174
- executionTime: testExecutionSumTime(tests),
175
- executionDate: getCurrentDateTimeFormatted(),
176
- tests,
177
- };
178
- // generate output HTML based on the template
179
- const html = this.#generateHTMLReport(data, templatePath);
180
-
181
- if (!html) return;
182
-
183
- fs.writeFileSync(outputPath, html, 'utf-8');
184
- // Check if the file exists
185
- if (fs.existsSync(outputPath)) {
186
- // Get the absolute path of the file
187
- const absolutePath = path.resolve(outputPath);
188
- // Convert the file path to a file URL
189
- const fileUrlPath = fileUrl(absolutePath, { resolve: true });
190
-
191
- debug('HTML tests data:', fileUrlPath);
192
-
193
- console.log(pc.green(`📊 The HTML report was successfully generated. Full filepath: ${fileUrlPath}`));
194
- } else {
195
- console.log(pc.red(`🚨 Failed to generate the HTML report.`));
196
- }
197
- }
198
-
199
- /**
200
- * Generates an HTML report based on provided test data and a template path.
201
- * @param {any} data - Test data used to generate the HTML report.
202
- * @param {string} [templatePath=""] - The path to the HTML template used for generating the report.
203
- * @returns {string | void} - The generated HTML report as a string or void if templatePath is not provided.
204
- */
205
- #generateHTMLReport(data, templatePath = '') {
206
- if (!templatePath) {
207
- console.log(pc.red(`🚨 HTML template not found. Report generation is impossible!`));
208
- return;
209
- }
210
-
211
- const templateSource = fs.readFileSync(templatePath, 'utf8');
212
- this.#loadReportHelpers();
213
- try {
214
- const template = handlebars.compile(templateSource);
215
-
216
- return template(data);
217
- } catch (e) {
218
- console.log(pc.red('❌ Oops! An unknown error occurred when generating an HTML report'));
219
- console.log(pc.red(e));
220
- }
221
- }
222
-
223
- #loadReportHelpers() {
224
- handlebars.registerHelper(
225
- 'getTestsByStatus',
226
- (tests, status) => tests.filter(test => test.status.toLowerCase() === status.toLowerCase()).length,
227
- );
228
-
229
- handlebars.registerHelper(
230
- 'selectComponent',
231
- () =>
232
- new handlebars.SafeString(
233
- `<select style="width: 70px;height: 38px;" class="form-select" aria-label="Tests counter on page">
234
- <option value="0">10</option>
235
- <option value="1">25</option>
236
- <option value="2">50</option>
237
- </select>`,
238
- ),
239
- );
240
- handlebars.registerHelper('emptyDataComponent', () => {
241
- const svgFilePath = path.join(__dirname, '..', 'template', 'emptyData.svg');
242
- const svgContent = fs.readFileSync(svgFilePath, 'utf8');
243
-
244
- return new handlebars.SafeString(
245
- `
246
- <div class="noData">
247
- <div class="noDataSvg">
248
- ${svgContent}
249
- </div>
250
- <div class="noDataText">
251
- NO MATCHING TESTS
252
- </div>
253
- <div>`,
254
- );
255
- });
256
- handlebars.registerHelper('pageDispleyElements', tests => {
257
- // We wrapp the lines to the HTML format we need
258
- const totalTests = JSON.parse(
259
- JSON.stringify(tests)
260
- .replace(/<script>/g, '&lt;script&gt;')
261
- .replace(/<\/script>/g, '&lt;/script&gt;'),
262
- );
263
-
264
- const paginationOptions = {
265
- 0: 10,
266
- 1: 25,
267
- 2: 50,
268
- };
269
- const statuses = ['all', 'passed', 'failed', 'skipped'];
270
- const pageItemGroups = {
271
- all: {},
272
- passed: {},
273
- failed: {},
274
- skipped: {},
275
- totalTests,
276
- };
277
-
278
- function paginateItems(items, pageSize) {
279
- const paginatedItems = [];
280
- for (let i = 0; i < items.length; i += pageSize) {
281
- paginatedItems.push(items.slice(i, i + pageSize));
282
- }
283
- return paginatedItems;
284
- }
285
-
286
- statuses.forEach(status => {
287
- for (const option in paginationOptions) {
288
- if (paginationOptions.hasOwnProperty(option)) {
289
- const pageSize = paginationOptions[option];
290
- let filteredItems = totalTests;
291
-
292
- if (status !== 'all') {
293
- filteredItems = totalTests.filter(item => item.status === status);
294
- }
295
-
296
- pageItemGroups[status][option] = paginateItems(filteredItems, pageSize);
297
- }
298
- }
299
- });
300
-
301
- pageItemGroups.totalTests = totalTests;
302
-
303
- return JSON.stringify(pageItemGroups);
304
- });
305
- }
306
-
307
- toString() {
308
- return 'HTML Reporter';
309
- }
310
- }
311
-
312
- /**
313
- * Calculates the total execution time for an array of tests.
314
- * @param {Object[]} tests - An array of test objects.
315
- * @param {number} tests[].run_time - The execution time of each test in milliseconds.
316
- * @returns {string} - The total execution time in a formatted duration string.
317
- */
318
- function testExecutionSumTime(tests) {
319
- const totalMilliseconds = tests.reduce((sum, test) => {
320
- if (typeof test.run_time === 'number' && !Number.isNaN(test.run_time)) {
321
- return sum + test.run_time;
322
- }
323
- return sum;
324
- }, 0);
325
-
326
- return formatDuration(totalMilliseconds);
327
- }
328
-
329
- /**
330
- * Removes ANSI color codes and converts newline characters to HTML line breaks in a given string.
331
- * @param {string} str - The input string containing ANSI color codes.
332
- * @returns {string} - The updated string with removed ANSI color codes and replaced newline characters.
333
- */
334
- function removeAnsiColorCodes(str) {
335
- let updatedStr = str.replace(ansiRegExp(), '');
336
- updatedStr = updatedStr.replace(/\n/g, '<br>');
337
-
338
- return updatedStr;
339
- }
340
-
341
- /**
342
- * Formats duration in milliseconds into a human-readable string representation.
343
- * @param {number} duration - The duration in milliseconds.
344
- * @returns {string} - The formatted duration string (e.g., "2h 30m 15s 500ms").
345
- */
346
- function formatDuration(duration) {
347
- const milliseconds = duration % 1000;
348
- duration = (duration - milliseconds) / 1000;
349
- const seconds = duration % 60;
350
- duration = (duration - seconds) / 60;
351
- const minutes = duration % 60;
352
- const hours = (duration - minutes) / 60;
353
-
354
- return `${hours}h ${minutes}m ${seconds}s ${milliseconds}ms`;
355
- }
356
-
357
- /**
358
- * Retrieves the current date and time in a formatted string.
359
- * @returns {string} - The formatted date and time string (e.g., "(01/01/2023 12:00:00)").
360
- */
361
- function getCurrentDateTimeFormatted() {
362
- const currentDate = new Date();
363
- const day = currentDate.getDate().toString().padStart(2, '0');
364
- const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');
365
- const year = currentDate.getFullYear();
366
- const hours = currentDate.getHours().toString().padStart(2, '0');
367
- const minutes = currentDate.getMinutes().toString().padStart(2, '0');
368
- const seconds = currentDate.getSeconds().toString().padStart(2, '0');
369
-
370
- return `(${day}/${month}/${year} ${hours}:${minutes}:${seconds})`;
371
- }
372
-
373
- export default HtmlPipe;
package/src/pipe/index.js DELETED
@@ -1,71 +0,0 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import pc from 'picocolors';
4
- import { APP_PREFIX } from '../constants.js';
5
- import TestomatioPipe from './testomatio.js';
6
- import GitHubPipe from './github.js';
7
- import GitLabPipe from './gitlab.js';
8
- import CsvPipe from './csv.js';
9
- import HtmlPipe from './html.js';
10
- import { BitbucketPipe } from './bitbucket.js';
11
- import { DebugPipe } from './debug.js';
12
-
13
- export async function pipesFactory(params, opts) {
14
- const extraPipes = [];
15
-
16
- // Add extra pipes into package.json file:
17
- // "testomatio": {
18
- // "pipes": ["my-module-pipe", "./local/js/file/pipe"]
19
- // }
20
-
21
- const packageJsonFile = path.join(process.cwd(), 'package.json');
22
- if (fs.existsSync(packageJsonFile)) {
23
- const packageJson = JSON.parse(fs.readFileSync(packageJsonFile).toString());
24
- const pipeDefs = packageJson?.testomatio?.pipes || [];
25
-
26
- for (const pipeDef of pipeDefs) {
27
- let PipeClass;
28
- try {
29
- PipeClass = await import(pipeDef);
30
- } catch (err) {
31
- console.log(APP_PREFIX, `Can't load module Testomatio pipe module from ${pipeDef}`);
32
- continue;
33
- }
34
-
35
- try {
36
- extraPipes.push(new PipeClass(params, opts));
37
- } catch (err) {
38
- console.log(APP_PREFIX, `Can't instantiate Testomatio for ${pipeDef}`, err);
39
- continue;
40
- }
41
- }
42
- }
43
-
44
- const pipes = [
45
- new TestomatioPipe(params, opts),
46
- new GitHubPipe(params, opts),
47
- new GitLabPipe(params, opts),
48
- new CsvPipe(params, opts),
49
- new HtmlPipe(params, opts),
50
- new BitbucketPipe(params, opts),
51
- new DebugPipe(params, opts),
52
- ...extraPipes,
53
- ];
54
-
55
- const pipesEnabled = pipes.filter(p => p.isEnabled);
56
-
57
- console.log(
58
- APP_PREFIX,
59
- pc.cyan('Pipes:'),
60
- pc.cyan(pipesEnabled.map(p => p.toString()).join(', ') || 'No pipes enabled'),
61
- );
62
-
63
- if (!pipesEnabled.length) {
64
- console.log(
65
- APP_PREFIX,
66
- pc.dim('If you want to use Testomatio reporter, pass your token as TESTOMATIO env variable'),
67
- );
68
- }
69
-
70
- return pipes;
71
- }