@wdio/concise-reporter 7.25.1 → 7.26.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/build/index.d.ts +9 -9
- package/build/index.d.ts.map +1 -1
- package/build/index.js +11 -13
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -10,19 +10,19 @@ export default class ConciseReporter extends WDIOReporter {
|
|
|
10
10
|
onTestFail(): void;
|
|
11
11
|
onRunnerEnd(runner: RunnerStats): void;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
* Print the Concise report to the screen
|
|
14
|
+
* @param {Object} runner Wdio runner
|
|
15
|
+
*/
|
|
16
16
|
printReport(runner: RunnerStats): void;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
* Get the display for failing tests
|
|
19
|
+
* @return {String} Count display
|
|
20
|
+
*/
|
|
21
21
|
getCountDisplay(): string;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* Get display for failed tests, e.g. stack trace
|
|
24
|
+
* @return {Array} Stack trace output
|
|
25
|
+
*/
|
|
26
26
|
getFailureDisplay(): string[];
|
|
27
27
|
/**
|
|
28
28
|
* Get suites in the order they were called
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAGtE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE1D,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IAErD,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,YAAY,CAAgB;gBAExB,OAAO,EAAE,SAAS,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAGtE,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE1D,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IAErD,OAAO,CAAC,UAAU,CAAe;IACjC,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,YAAY,CAAgB;gBAExB,OAAO,EAAE,SAAS,CAAC,OAAO;IAKtC,YAAY,CAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAItC,UAAU,CAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAIpC,UAAU;IAIV,WAAW,CAAE,MAAM,EAAE,WAAW,GAAG,IAAI;IAIvC;;;OAGG;IACH,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAYtC;;;OAGG;IACH,eAAe;IAQf;;;OAGG;IACH,iBAAiB;IAgBjB;;;OAGG;IACH,gBAAgB;IAYhB;;;;;OAKG;IACH,kBAAkB,CAAE,IAAI,EAAE,YAAY,CAAC,mBAAmB;CAkB7D"}
|
package/build/index.js
CHANGED
|
@@ -7,10 +7,8 @@ const reporter_1 = __importDefault(require("@wdio/reporter"));
|
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
class ConciseReporter extends reporter_1.default {
|
|
9
9
|
constructor(options) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
super(Object.assign(options, { stdout: true }));
|
|
10
|
+
// write to output stream by default
|
|
11
|
+
super(Object.assign({ stdout: true }, options));
|
|
14
12
|
// keep track of the order that suites were called
|
|
15
13
|
this._suiteUids = [];
|
|
16
14
|
this._suites = [];
|
|
@@ -29,9 +27,9 @@ class ConciseReporter extends reporter_1.default {
|
|
|
29
27
|
this.printReport(runner);
|
|
30
28
|
}
|
|
31
29
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
* Print the Concise report to the screen
|
|
31
|
+
* @param {Object} runner Wdio runner
|
|
32
|
+
*/
|
|
35
33
|
printReport(runner) {
|
|
36
34
|
const header = chalk_1.default.yellow('========= Your concise report ==========');
|
|
37
35
|
const output = [
|
|
@@ -42,9 +40,9 @@ class ConciseReporter extends reporter_1.default {
|
|
|
42
40
|
this.write(`${header}\n${output.join('\n')}\n`);
|
|
43
41
|
}
|
|
44
42
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
* Get the display for failing tests
|
|
44
|
+
* @return {String} Count display
|
|
45
|
+
*/
|
|
48
46
|
getCountDisplay() {
|
|
49
47
|
const failedTestsCount = this._stateCounts.failed;
|
|
50
48
|
return failedTestsCount > 0
|
|
@@ -52,9 +50,9 @@ class ConciseReporter extends reporter_1.default {
|
|
|
52
50
|
: 'All went well !!';
|
|
53
51
|
}
|
|
54
52
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
* Get display for failed tests, e.g. stack trace
|
|
54
|
+
* @return {Array} Stack trace output
|
|
55
|
+
*/
|
|
58
56
|
getFailureDisplay() {
|
|
59
57
|
const output = [];
|
|
60
58
|
this.getOrderedSuites().map(suite => suite.tests.map(test => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/concise-reporter",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.26.0",
|
|
4
4
|
"description": "A concise reporter for WebdriverIO",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-concise-reporter",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@wdio/reporter": "7.
|
|
26
|
-
"@wdio/types": "7.
|
|
25
|
+
"@wdio/reporter": "7.26.0",
|
|
26
|
+
"@wdio/types": "7.26.0",
|
|
27
27
|
"chalk": "^4.0.0",
|
|
28
28
|
"pretty-ms": "^7.0.0"
|
|
29
29
|
},
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "573927a79dc0a2b9d9a9e19e7d1b8c1ff9fac308"
|
|
37
37
|
}
|