@wdio/reporter 8.0.0-alpha.412 → 8.0.0-alpha.504
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/build/index.d.ts.map +1 -1
- package/build/index.js +6 -9
- package/package.json +4 -5
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAGrD,OAAO,UAAqB,MAAM,kBAAkB,CAAA;AACpD,OAAO,SAAmB,MAAM,iBAAiB,CAAA;AACjD,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAGrD,OAAO,UAAqB,MAAM,kBAAkB,CAAA;AACpD,OAAO,SAAmB,MAAM,iBAAiB,CAAA;AACjD,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EA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C,SAAS,EAAE,SAAS;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS;IAG9B,UAAU,CAAC,UAAU,EAAE,UAAU;IAGjC,WAAW,CAAC,WAAW,EAAE,WAAW;CACvC;AAED,OAAO,EACH,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EACrE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAChD,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import { EventEmitter } from 'node:events';
|
|
3
|
-
import
|
|
3
|
+
import logger from '@wdio/logger';
|
|
4
4
|
import { getErrorsFromEvent } from './utils.js';
|
|
5
5
|
import SuiteStats from './stats/suite.js';
|
|
6
6
|
import HookStats from './stats/hook.js';
|
|
7
7
|
import TestStats from './stats/test.js';
|
|
8
8
|
import RunnerStats from './stats/runner.js';
|
|
9
|
-
const
|
|
10
|
-
/**
|
|
11
|
-
* 'fs-extra' has no support for ESM
|
|
12
|
-
* https://github.com/jprichardson/node-fs-extra/issues/746
|
|
13
|
-
*/
|
|
14
|
-
const { createWriteStream, ensureDirSync } = require('fs-extra');
|
|
9
|
+
const log = logger('WDIOReporter');
|
|
15
10
|
export default class WDIOReporter extends EventEmitter {
|
|
16
11
|
options;
|
|
17
12
|
outputStream;
|
|
@@ -38,11 +33,13 @@ export default class WDIOReporter extends EventEmitter {
|
|
|
38
33
|
this.options = options;
|
|
39
34
|
// ensure the report directory exists
|
|
40
35
|
if (this.options.outputDir) {
|
|
41
|
-
|
|
36
|
+
fs.mkdir(this.options.outputDir, { recursive: true }, (err) => {
|
|
37
|
+
err && log.error(`Couldn't create output dir: ${err.stack}`);
|
|
38
|
+
});
|
|
42
39
|
}
|
|
43
40
|
this.outputStream = (this.options.stdout || !this.options.logFile) && this.options.writeStream
|
|
44
41
|
? this.options.writeStream
|
|
45
|
-
: createWriteStream(this.options.logFile);
|
|
42
|
+
: fs.createWriteStream(this.options.logFile);
|
|
46
43
|
let currentTest;
|
|
47
44
|
const rootSuite = new SuiteStats({
|
|
48
45
|
title: '(root)',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/reporter",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.504+428a9d729",
|
|
4
4
|
"description": "A WebdriverIO utility to help reporting all events",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
|
|
@@ -33,16 +33,15 @@
|
|
|
33
33
|
"@types/object-inspect": "^1.8.1",
|
|
34
34
|
"@types/supports-color": "^8.1.1",
|
|
35
35
|
"@types/tmp": "^0.2.3",
|
|
36
|
-
"@wdio/
|
|
36
|
+
"@wdio/logger": "8.0.0-alpha.504+428a9d729",
|
|
37
|
+
"@wdio/types": "8.0.0-alpha.504+428a9d729",
|
|
37
38
|
"diff": "^5.0.0",
|
|
38
|
-
"fs-extra": "^10.1.0",
|
|
39
39
|
"object-inspect": "^1.12.0",
|
|
40
40
|
"supports-color": "9.2.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/fs-extra": "^9.0.13",
|
|
44
43
|
"@types/node": "^18.0.0",
|
|
45
44
|
"tmp": "^0.2.1"
|
|
46
45
|
},
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "428a9d729ae6231968a60908732fa3f607d195e9"
|
|
48
47
|
}
|