@wdio/spec-reporter 8.29.3 → 8.30.0

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.
package/README.md CHANGED
@@ -85,7 +85,7 @@ Default: `false`
85
85
  ```
86
86
 
87
87
  ### addConsoleLogs
88
- Set to true to show console logs from steps in final report
88
+ Set to `true` to show console logs from steps in final report
89
89
 
90
90
  Type: `boolean`
91
91
  Default: `false`
@@ -100,7 +100,7 @@ Default: `false`
100
100
  ```
101
101
 
102
102
  ### realtimeReporting
103
- Set to true to display test status realtime than just at the end of the run
103
+ Set to `true` to display test status realtime than just at the end of the run
104
104
 
105
105
  Type: `boolean`
106
106
  Default: `false`
@@ -115,7 +115,7 @@ Default: `false`
115
115
  ```
116
116
 
117
117
  ### showPreface
118
- Set to false to disable `[ MutliRemoteBrowser ... ]` preface in the reports.
118
+ Set to `false` to disable `[ MutliRemoteBrowser ... ]` preface in the reports.
119
119
 
120
120
  Type: `boolean`
121
121
  Default: `true`
@@ -164,6 +164,21 @@ and with `true` (default) each line will be prefixed with the preface:
164
164
  [loremipsum 50 Windows 10 #0-0]
165
165
  ```
166
166
 
167
+ ### color
168
+ Set to `true` to display colored output in terminal
169
+
170
+ Type: `boolean`
171
+ Default: `true`
172
+
173
+ ```js
174
+ [
175
+ "spec",
176
+ {
177
+ color: true,
178
+ },
179
+ ]
180
+ ```
181
+
167
182
  ## Environment Options
168
183
 
169
184
  There are certain options you can set through environment variables:
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { SuiteStats, HookStats, RunnerStats } from '@wdio/reporter';
2
- import WDIOReporter, { TestStats } from '@wdio/reporter';
3
1
  import type { Capabilities } from '@wdio/types';
4
- import type { Symbols, SpecReporterOptions, TestLink } from './types.js';
2
+ import WDIOReporter, { TestStats } from '@wdio/reporter';
3
+ import type { SuiteStats, HookStats, RunnerStats } from '@wdio/reporter';
4
+ import { ChalkColors, type SpecReporterOptions, type TestLink, type Symbols, State } from './types.js';
5
5
  export default class SpecReporter extends WDIOReporter {
6
6
  private _suiteUids;
7
7
  private _indents;
@@ -19,9 +19,16 @@ export default class SpecReporter extends WDIOReporter {
19
19
  private _suiteName;
20
20
  private _stateCounts;
21
21
  private _symbols;
22
+ private _chalk;
22
23
  private _onlyFailures;
23
24
  private _sauceLabsSharableLinks;
24
25
  constructor(options: SpecReporterOptions);
26
+ /**
27
+ * @param state state of test execution
28
+ * @param msg the message to print in terminal
29
+ * @returns colord value based on chalk to print in terminal
30
+ */
31
+ setMessageColor(message: string, state?: State): string;
25
32
  onRunnerStart(runner: RunnerStats): void;
26
33
  onSuiteStart(suite: SuiteStats): void;
27
34
  onSuiteEnd(): void;
@@ -94,11 +101,12 @@ export default class SpecReporter extends WDIOReporter {
94
101
  * @param {string} state Test state
95
102
  * @return {String} State color
96
103
  */
97
- getColor(state?: string): "red" | "green" | "cyan" | "gray";
104
+ getColor(state?: string): ChalkColors;
98
105
  /**
99
106
  * Get information about the enviroment
100
- * @param {Object} caps Enviroment details
107
+ * @param capability
101
108
  * @param {Boolean} verbose
109
+ * @param isMultiremote
102
110
  * @return {String} Enviroment string
103
111
  */
104
112
  getEnviromentCombo(capability: Capabilities.RemoteCapability, verbose?: boolean, isMultiremote?: boolean): string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAA;AAClF,OAAO,YAAY,EAAE,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,OAAO,KAAK,EAAc,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAQpF,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAClD,OAAO,CAAC,UAAU,CAAY;IAC9B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AK,CAAC,EAAE,MAAM,OAAO;IAIhC;;;;OAIG;IACH,QAAQ,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW;IAoBtC;;;;;;OAMG;IACH,kBAAkB,CAAE,UAAU,EAAE,YAAY,CAAC,gBAAgB,EAAE,OAAO,UAAO,EAAE,aAAa,UAAQ,GAAG,MAAM;CAgDhH"}
package/build/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { format } from 'node:util';
2
- import chalk from 'chalk';
3
1
  import prettyMs from 'pretty-ms';
2
+ import { format } from 'node:util';
3
+ import { Chalk } from 'chalk';
4
4
  import WDIOReporter, { TestStats } from '@wdio/reporter';
5
5
  import { buildTableData, printTable, getFormattedRows, sauceAuthenticationToken } from './utils.js';
6
+ import { ChalkColors, State } from './types.js';
6
7
  const DEFAULT_INDENT = ' ';
7
8
  export default class SpecReporter extends WDIOReporter {
8
9
  _suiteUids = new Set();
@@ -31,6 +32,7 @@ export default class SpecReporter extends WDIOReporter {
31
32
  pending: '?',
32
33
  failed: '✖'
33
34
  };
35
+ _chalk;
34
36
  _onlyFailures = false;
35
37
  _sauceLabsSharableLinks = true;
36
38
  constructor(options) {
@@ -54,6 +56,15 @@ export default class SpecReporter extends WDIOReporter {
54
56
  return this._originalStdoutWrite(chunk, encoding, callback);
55
57
  };
56
58
  }
59
+ this._chalk = new Chalk(options.color === false ? { level: 0 } : {});
60
+ }
61
+ /**
62
+ * @param state state of test execution
63
+ * @param msg the message to print in terminal
64
+ * @returns colord value based on chalk to print in terminal
65
+ */
66
+ setMessageColor(message, state) {
67
+ return this._chalk[this.getColor(state)](message);
57
68
  }
58
69
  onRunnerStart(runner) {
59
70
  this._preface = this._showPreface ? `[${this.getEnviromentCombo(runner.capabilities, false, runner.isMultiremote).trim()} #${runner.cid}]` : '';
@@ -119,8 +130,8 @@ export default class SpecReporter extends WDIOReporter {
119
130
  `${this._preface} » ${this._suiteName}\n` : '\n';
120
131
  const content = stat.type === 'test'
121
132
  ? `${this._preface} ${indent}` +
122
- `${chalk[this.getColor(state)](this.getSymbol(state))} ${title}` +
123
- ` » ${chalk[this.getColor(state)]('[')} ${this._suiteName} ${chalk[this.getColor(state)](']')}`
133
+ `${this.setMessageColor(this.getSymbol(state), state)} ${title}` +
134
+ ` » ${this.setMessageColor('[', state)} ${this._suiteName} ${this.setMessageColor(']', state)}`
124
135
  : stat.type !== 'hook' ?
125
136
  `${suiteStartBanner}${this._preface} ${title}` :
126
137
  title
@@ -294,13 +305,13 @@ export default class SpecReporter extends WDIOReporter {
294
305
  // display suite description (Cucumber only)
295
306
  if (suite.description) {
296
307
  output.push(...suite.description.trim().split('\n')
297
- .map((l) => `${suiteIndent}${chalk.grey(l.trim())}`));
308
+ .map((l) => `${suiteIndent}${this.setMessageColor(l.trim())}`));
298
309
  output.push(''); // empty line
299
310
  }
300
311
  // display suite rule (Cucumber only)
301
312
  if (suite.rule) {
302
313
  output.push(...suite.rule.trim().split('\n')
303
- .map((l) => `${suiteIndent}${chalk.grey(l.trim())}`));
314
+ .map((l) => `${suiteIndent}${this.setMessageColor(l.trim())}`));
304
315
  }
305
316
  const eventsToReport = this.getEventsToReport(suite);
306
317
  for (const test of eventsToReport) {
@@ -308,7 +319,7 @@ export default class SpecReporter extends WDIOReporter {
308
319
  const state = test.state;
309
320
  const testIndent = `${DEFAULT_INDENT}${suiteIndent}`;
310
321
  // Output for a single test
311
- output.push(`${testIndent}${chalk[this.getColor(state)](this.getSymbol(state))} ${testTitle.trim()}`);
322
+ output.push(`${testIndent}${this.setMessageColor(this.getSymbol(state), state)} ${testTitle.trim()}`);
312
323
  // print cucumber data table cells and docstring
313
324
  const arg = test.argument;
314
325
  if (typeof (arg) === 'string') {
@@ -361,19 +372,19 @@ export default class SpecReporter extends WDIOReporter {
361
372
  // Get the passes
362
373
  if (this._stateCounts.passed > 0) {
363
374
  const text = `${this._stateCounts.passed} passing ${duration}`;
364
- output.push(chalk[this.getColor('passed')](text));
375
+ output.push(this.setMessageColor(text, State.PASSED));
365
376
  duration = '';
366
377
  }
367
378
  // Get the failures
368
379
  if (this._stateCounts.failed > 0) {
369
380
  const text = `${this._stateCounts.failed} failing ${duration}`.trim();
370
- output.push(chalk[this.getColor('failed')](text));
381
+ output.push(this.setMessageColor(text, State.FAILED));
371
382
  duration = '';
372
383
  }
373
384
  // Get the skipped tests
374
385
  if (this._stateCounts.skipped > 0) {
375
386
  const text = `${this._stateCounts.skipped} skipped ${duration}`.trim();
376
- output.push(chalk[this.getColor('skipped')](text));
387
+ output.push(this.setMessageColor(text, State.SKIPPED));
377
388
  }
378
389
  return output;
379
390
  }
@@ -389,7 +400,7 @@ export default class SpecReporter extends WDIOReporter {
389
400
  const suiteTitle = suite.title;
390
401
  const eventsToReport = this.getEventsToReport(suite);
391
402
  for (const test of eventsToReport) {
392
- if (test.state !== 'failed') {
403
+ if (test.state !== State.FAILED) {
393
404
  continue;
394
405
  }
395
406
  const testTitle = test.title;
@@ -398,10 +409,10 @@ export default class SpecReporter extends WDIOReporter {
398
409
  output.push('', `${++failureLength}) ${suiteTitle} ${testTitle}`);
399
410
  for (const error of errors) {
400
411
  !error?.stack?.includes('new AssertionError')
401
- ? output.push(chalk.red(error.message))
412
+ ? output.push(this.setMessageColor(error.message, State.FAILED))
402
413
  : output.push(...error.message.split('\n'));
403
414
  if (error.stack) {
404
- output.push(...error.stack.split(/\n/g).map(value => chalk.gray(value)));
415
+ output.push(...error.stack.split(/\n/g).map(value => this.setMessageColor(value)));
405
416
  }
406
417
  }
407
418
  }
@@ -474,25 +485,26 @@ export default class SpecReporter extends WDIOReporter {
474
485
  */
475
486
  getColor(state) {
476
487
  // In case of an unknown state
477
- let color = 'gray';
488
+ let color = ChalkColors.GRAY;
478
489
  switch (state) {
479
- case 'passed':
480
- color = 'green';
490
+ case State.PASSED:
491
+ color = ChalkColors.GREEN;
481
492
  break;
482
- case 'pending':
483
- case 'skipped':
484
- color = 'cyan';
493
+ case State.PENDING:
494
+ case State.SKIPPED:
495
+ color = ChalkColors.CYAN;
485
496
  break;
486
- case 'failed':
487
- color = 'red';
497
+ case State.FAILED:
498
+ color = ChalkColors.RED;
488
499
  break;
489
500
  }
490
501
  return color;
491
502
  }
492
503
  /**
493
504
  * Get information about the enviroment
494
- * @param {Object} caps Enviroment details
505
+ * @param capability
495
506
  * @param {Boolean} verbose
507
+ * @param isMultiremote
496
508
  * @return {String} Enviroment string
497
509
  */
498
510
  getEnviromentCombo(capability, verbose = true, isMultiremote = false) {
package/build/types.d.ts CHANGED
@@ -51,6 +51,30 @@ export interface SpecReporterOptions {
51
51
  * @default: `true`
52
52
  */
53
53
  showPreface?: boolean;
54
+ /**
55
+ * Ability to enable or disable colored output in terminal')
56
+ *
57
+ * @default: `true`
58
+ */
59
+ color?: boolean;
60
+ }
61
+ export declare enum ChalkColors {
62
+ RED = "red",
63
+ GREEN = "green",
64
+ CYAN = "cyan",
65
+ GRAY = "gray",
66
+ GREY = "grey",
67
+ BLACCK = "black",
68
+ YELLOW = "yellow",
69
+ BLUE = "blue",
70
+ MAGENTA = "magenta",
71
+ WHITE = "white"
72
+ }
73
+ export declare enum State {
74
+ FAILED = "failed",
75
+ PASSED = "passed",
76
+ PENDING = "pending",
77
+ SKIPPED = "skipped"
54
78
  }
55
79
  export interface TestLink {
56
80
  capabilities: Capabilities.RemoteCapability;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,OAAO;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,mBAAm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W,CAAC,EAAE,OAAO,CAAA;IACrB;;;;MAIE;IACF,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,oBAAY,WAAW;IACnB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,UAAU;IAChB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB;AAED,oBAAY,KAAK;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,QAAQ;IACrB,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAA;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACxB"}
package/build/types.js CHANGED
@@ -1 +1,20 @@
1
- export {};
1
+ export var ChalkColors;
2
+ (function (ChalkColors) {
3
+ ChalkColors["RED"] = "red";
4
+ ChalkColors["GREEN"] = "green";
5
+ ChalkColors["CYAN"] = "cyan";
6
+ ChalkColors["GRAY"] = "gray";
7
+ ChalkColors["GREY"] = "grey";
8
+ ChalkColors["BLACCK"] = "black";
9
+ ChalkColors["YELLOW"] = "yellow";
10
+ ChalkColors["BLUE"] = "blue";
11
+ ChalkColors["MAGENTA"] = "magenta";
12
+ ChalkColors["WHITE"] = "white";
13
+ })(ChalkColors || (ChalkColors = {}));
14
+ export var State;
15
+ (function (State) {
16
+ State["FAILED"] = "failed";
17
+ State["PASSED"] = "passed";
18
+ State["PENDING"] = "pending";
19
+ State["SKIPPED"] = "skipped";
20
+ })(State || (State = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/spec-reporter",
3
- "version": "8.29.3",
3
+ "version": "8.30.0",
4
4
  "description": "A WebdriverIO plugin to report in spec style",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-spec-reporter",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "typeScriptVersion": "3.8.3",
31
31
  "dependencies": {
32
- "@wdio/reporter": "8.29.1",
33
- "@wdio/types": "8.29.1",
32
+ "@wdio/reporter": "8.30.0",
33
+ "@wdio/types": "8.30.0",
34
34
  "chalk": "^5.1.2",
35
35
  "easy-table": "^1.2.0",
36
36
  "pretty-ms": "^7.0.0"
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "4c6433be548950dc6ccf0efff77507dfa2f0b321"
41
+ "gitHead": "033e2a91e97c9bd060eb70f2e4e412d382bec3af"
42
42
  }