@wdio/junit-reporter 8.4.0 → 8.6.8
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 +3 -1
- package/package.json +8 -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,EAAc,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAMzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAOtD;;;;;GAKG;AACH,cAAM,aAAc,SAAQ,YAAY;IAQhB,OAAO,EAAE,oBAAoB;IAPjD,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAQ;IAC7B,OAAO,CAAC,gBAAgB,CAAC,CAAQ;IACjC,OAAO,CAAC,cAAc,CAAC,CAAQ;IAC/B,OAAO,CAAC,cAAc,CAAC,CAAK;IAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAK;gBAEZ,OAAO,EAAE,oBAAoB;IAOjD,WAAW,CAAE,SAAS,EAAE,SAAS;IAIjC,WAAW,CAAE,MAAM,EAAE,WAAW;IAKhC,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,4BAA4B;IA6EpC,OAAO,CAAC,kBAAkB;IA6E1B,OAAO,CAAC,cAAc;IAuCtB,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,OAAO;CAGlB;AAED,eAAe,aAAa,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import junit from 'junit-report-builder';
|
|
2
2
|
import WDIOReporter from '@wdio/reporter';
|
|
3
|
+
const FILE_PROTOCOL_REGEX = /^file:\/\//;
|
|
3
4
|
import { limit } from './utils.js';
|
|
4
5
|
const ansiRegex = new RegExp([
|
|
5
6
|
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
@@ -241,7 +242,8 @@ class JunitReporter extends WDIOReporter {
|
|
|
241
242
|
continue;
|
|
242
243
|
}
|
|
243
244
|
const suite = this.suites[suiteKey];
|
|
244
|
-
|
|
245
|
+
const sameFeature = isCucumberFrameworkRunner && specFileName.replace(FILE_PROTOCOL_REGEX, '') === suite.file.replace(FILE_PROTOCOL_REGEX, '');
|
|
246
|
+
if (isCucumberFrameworkRunner && suite.type === type && sameFeature) {
|
|
245
247
|
builder = this._addCucumberFeatureToBuilder(builder, runner, specFileName, suite);
|
|
246
248
|
}
|
|
247
249
|
else if (!isCucumberFrameworkRunner) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/junit-reporter",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.8",
|
|
4
4
|
"description": "A WebdriverIO reporter that creates Jenkins compatible XML based JUnit reports",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-junit-reporter",
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
|
-
"exports": "./build/index.js",
|
|
28
27
|
"types": "./build/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./build/index.js",
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
29
32
|
"typeScriptVersion": "3.8.3",
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@wdio/reporter": "8.
|
|
32
|
-
"@wdio/types": "8.
|
|
34
|
+
"@wdio/reporter": "8.6.8",
|
|
35
|
+
"@wdio/types": "8.6.8",
|
|
33
36
|
"json-stringify-safe": "^5.0.1",
|
|
34
37
|
"junit-report-builder": "^3.0.0"
|
|
35
38
|
},
|
|
@@ -39,5 +42,5 @@
|
|
|
39
42
|
"publishConfig": {
|
|
40
43
|
"access": "public"
|
|
41
44
|
},
|
|
42
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d93cd057937fc77935a4855dedf74323183652dd"
|
|
43
46
|
}
|