@wdio/spec-reporter 9.12.6 → 9.14.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 +4 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -134,12 +134,12 @@ With it set to `false` you will see output as:
|
|
|
134
134
|
Running: loremipsum (v50) on Windows 10
|
|
135
135
|
Session ID: foobar
|
|
136
136
|
|
|
137
|
-
»
|
|
137
|
+
» foo/bar/loo.e2e.js
|
|
138
138
|
Foo test
|
|
139
139
|
green ✓ foo
|
|
140
140
|
green ✓ bar
|
|
141
141
|
|
|
142
|
-
»
|
|
142
|
+
» bar/foo/loo.e2e.js
|
|
143
143
|
Bar test
|
|
144
144
|
green ✓ some test
|
|
145
145
|
red ✖ a failed test
|
|
@@ -151,12 +151,12 @@ and with `true` (default) each line will be prefixed with the preface:
|
|
|
151
151
|
[loremipsum 50 Windows 10 #0-0] Running: loremipsum (v50) on Windows 10
|
|
152
152
|
[loremipsum 50 Windows 10 #0-0] Session ID: foobar
|
|
153
153
|
[loremipsum 50 Windows 10 #0-0]
|
|
154
|
-
[loremipsum 50 Windows 10 #0-0] »
|
|
154
|
+
[loremipsum 50 Windows 10 #0-0] » foo/bar/loo.e2e.js
|
|
155
155
|
[loremipsum 50 Windows 10 #0-0] Foo test
|
|
156
156
|
[loremipsum 50 Windows 10 #0-0] green ✓ foo
|
|
157
157
|
[loremipsum 50 Windows 10 #0-0] green ✓ bar
|
|
158
158
|
[loremipsum 50 Windows 10 #0-0]
|
|
159
|
-
[loremipsum 50 Windows 10 #0-0] »
|
|
159
|
+
[loremipsum 50 Windows 10 #0-0] » bar/foo/loo.e2e.js
|
|
160
160
|
[loremipsum 50 Windows 10 #0-0] Bar test
|
|
161
161
|
[loremipsum 50 Windows 10 #0-0] green ✓ some test
|
|
162
162
|
[loremipsum 50 Windows 10 #0-0] red ✖ a failed test
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,YAAY,EAAE,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAA;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAmB,KAAK,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAQvH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAClD,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,eAAe,CAAe;IACtC,OAAO,CAAC,oBAAoB,CAA4C;IAExE,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,YAAY,CAAO;IAC3B,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,aAAa,CAAQ;IAC7B,OAAO,CAAC,2BAA2B,CAAI;IAGvC,OAAO,CAAC,YAAY,CAMnB;IAED,OAAO,CAAC,QAAQ,CAMf;IACD,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,aAAa,CAAQ;IAC7B,OAAO,CAAC,uBAAuB,CAAO;gBAEzB,OAAO,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,EAAE,OAAO,UAAO,EAAE,aAAa,UAAQ,GAAG,MAAM;CA6C9H"}
|
package/build/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import path from "node:path";
|
|
3
2
|
import { format } from "node:util";
|
|
4
3
|
import prettyMs from "pretty-ms";
|
|
5
4
|
import { Chalk } from "chalk";
|
|
6
|
-
import WDIOReporter, { TestStats } from "@wdio/reporter";
|
|
5
|
+
import WDIOReporter, { TestStats, getBrowserName } from "@wdio/reporter";
|
|
7
6
|
|
|
8
7
|
// src/utils.ts
|
|
9
8
|
import Table from "easy-table";
|
|
@@ -299,7 +298,7 @@ ${prefacedOutput.join("\n")}
|
|
|
299
298
|
}
|
|
300
299
|
const suiteIndent = this.indent(suite.uid);
|
|
301
300
|
if (suite.file && !specFileReferences.includes(suite.file)) {
|
|
302
|
-
output.push(`${suiteIndent}\xBB ${suite.file.replace(process.cwd(), "")}`);
|
|
301
|
+
output.push(`${suiteIndent}\xBB ${suite.file.replace(process.cwd(), "").slice(1)}`);
|
|
303
302
|
specFileReferences.push(suite.file);
|
|
304
303
|
}
|
|
305
304
|
let retryAnnotation = "";
|
|
@@ -518,13 +517,11 @@ ${prefacedOutput.join("\n")}
|
|
|
518
517
|
}
|
|
519
518
|
const caps = "alwaysMatch" in capability ? capability.alwaysMatch : capability;
|
|
520
519
|
const device = caps["appium:deviceName"];
|
|
521
|
-
const
|
|
522
|
-
const appName = caps["appium:bundleId"] || caps["appium:appPackage"] || caps["appium:appActivity"] || (path.isAbsolute(app) ? path.basename(app) : app);
|
|
523
|
-
const browser = caps.browserName || caps.browser || appName;
|
|
520
|
+
const browser = getBrowserName(caps);
|
|
524
521
|
const version = caps.browserVersion || caps.version || caps["appium:platformVersion"] || caps.browser_version;
|
|
525
522
|
const platform = caps.platformName || caps["appium:platformName"] || caps.platform || (caps.os ? caps.os + (caps.os_version ? ` ${caps.os_version}` : "") : "(unknown)");
|
|
526
523
|
if (device) {
|
|
527
|
-
const program =
|
|
524
|
+
const program = getBrowserName(caps);
|
|
528
525
|
const executing = program ? `executing ${program}` : "";
|
|
529
526
|
if (!verbose) {
|
|
530
527
|
return `${device} ${platform} ${version}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/spec-reporter",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.14.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",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"typeScriptVersion": "3.8.3",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@wdio/reporter": "9.
|
|
35
|
-
"@wdio/types": "9.
|
|
34
|
+
"@wdio/reporter": "9.14.0",
|
|
35
|
+
"@wdio/types": "9.14.0",
|
|
36
36
|
"chalk": "^5.1.2",
|
|
37
37
|
"easy-table": "^1.2.0",
|
|
38
38
|
"pretty-ms": "^9.0.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "f8e62f63eb087a06556e8c85e042403da0e4485e"
|
|
44
44
|
}
|