@wdio/reporter 5.14.4 → 5.22.4
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 +1 -1
- package/build/index.js +1 -1
- package/build/stats/test.js +2 -1
- package/package.json +2 -2
- package/reporter.d.ts +21 -3
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Then you need to extend your reporter with the main `@wdio/reporter` class:
|
|
|
20
20
|
```js
|
|
21
21
|
import Reporter from '@wdio/reporter'
|
|
22
22
|
|
|
23
|
-
export default
|
|
23
|
+
export default MyCustomReporter extends Reporter {
|
|
24
24
|
constructor () {
|
|
25
25
|
super()
|
|
26
26
|
// your custom logic if necessary
|
package/build/index.js
CHANGED
|
@@ -133,7 +133,7 @@ class WDIOReporter extends _events.default {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
this.tests[currentTest.uid] = currentTest;
|
|
136
|
-
currentTest.skip();
|
|
136
|
+
currentTest.skip(test.pendingReason);
|
|
137
137
|
this.counts.skipping++;
|
|
138
138
|
this.counts.tests++;
|
|
139
139
|
this.onTestSkip(currentTest);
|
package/build/stats/test.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/reporter",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.4",
|
|
4
4
|
"description": "A WebdriverIO utility to help reporting all events",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-reporter",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"fs-extra": "^8.0.1"
|
|
40
40
|
},
|
|
41
41
|
"types": "reporter.d.ts",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "1a093237fe927a5db470f8a839b342df02913804"
|
|
43
43
|
}
|
package/reporter.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ declare namespace WDIOReporter {
|
|
|
6
6
|
constructor (options: Options);
|
|
7
7
|
|
|
8
8
|
onRunnerStart(): void;
|
|
9
|
-
onBeforeCommand(): void;
|
|
10
|
-
onAfterCommand(): void;
|
|
9
|
+
onBeforeCommand(command: BeforeCommand): void;
|
|
10
|
+
onAfterCommand(command: AfterCommand): void;
|
|
11
11
|
onScreenshot(): void;
|
|
12
12
|
onSuiteStart(suite: Suite): void;
|
|
13
13
|
onHookStart(hook: Hook): void;
|
|
@@ -21,6 +21,8 @@ declare namespace WDIOReporter {
|
|
|
21
21
|
onRunnerEnd(): void;
|
|
22
22
|
|
|
23
23
|
isSynchronised: boolean;
|
|
24
|
+
|
|
25
|
+
write(content: any): void;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
interface Options {
|
|
@@ -61,8 +63,24 @@ declare namespace WDIOReporter {
|
|
|
61
63
|
expected: any;
|
|
62
64
|
actual: any;
|
|
63
65
|
}
|
|
64
|
-
}
|
|
65
66
|
|
|
67
|
+
interface BeforeCommand {
|
|
68
|
+
method: string;
|
|
69
|
+
endpoint: string;
|
|
70
|
+
body: any;
|
|
71
|
+
sessionId: string;
|
|
72
|
+
cid: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface AfterCommand {
|
|
76
|
+
method: string;
|
|
77
|
+
endpoint: string;
|
|
78
|
+
body?: any;
|
|
79
|
+
result?: any;
|
|
80
|
+
sessionId: string;
|
|
81
|
+
cid: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
66
84
|
declare module "@wdio/reporter" {
|
|
67
85
|
export default WDIOReporter.Reporter;
|
|
68
86
|
}
|