allure-playwright 2.0.0-beta.26 → 2.1.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 +73 -12
- package/dist/helpers.d.ts +10 -6
- package/dist/helpers.js +40 -71
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +58 -34
- package/dist/index.js.map +1 -1
- package/dist/testplan.d.ts +8 -0
- package/dist/testplan.js +17 -0
- package/dist/testplan.js.map +1 -0
- package/package.json +5 -3
- package/LICENSE.txt +0 -201
package/README.md
CHANGED
|
@@ -148,10 +148,10 @@ Tests extra information can be provided by labels:
|
|
|
148
148
|
|
|
149
149
|
```js
|
|
150
150
|
import { test, expect } from "@playwright/test";
|
|
151
|
-
import { allure
|
|
151
|
+
import { allure } from "allure-playwright";
|
|
152
152
|
|
|
153
153
|
test("basic test", async ({ page }, testInfo) => {
|
|
154
|
-
allure.label(
|
|
154
|
+
allure.label("labelName", "labelValue");
|
|
155
155
|
});
|
|
156
156
|
```
|
|
157
157
|
|
|
@@ -162,11 +162,8 @@ import { test, expect } from "@playwright/test";
|
|
|
162
162
|
import { allure } from "allure-playwright";
|
|
163
163
|
|
|
164
164
|
test("basic test", async ({ page }, testInfo) => {
|
|
165
|
-
allure.link(
|
|
166
|
-
allure.issue(
|
|
167
|
-
url: "https://github.com/allure-framework/allure-js/issues/352",
|
|
168
|
-
name: "Target issue",
|
|
169
|
-
});
|
|
165
|
+
allure.link("https://playwright.dev", "playwright-site"); // link with name
|
|
166
|
+
allure.issue("Issue Name", "https://github.com/allure-framework/allure-js/issues/352");
|
|
170
167
|
});
|
|
171
168
|
```
|
|
172
169
|
|
|
@@ -177,7 +174,7 @@ import { test, expect } from "@playwright/test";
|
|
|
177
174
|
import { allure, LabelName } from "allure-playwright";
|
|
178
175
|
|
|
179
176
|
test("basic test", async ({ page }, testInfo) => {
|
|
180
|
-
allure.id("
|
|
177
|
+
allure.id("420");
|
|
181
178
|
});
|
|
182
179
|
```
|
|
183
180
|
|
|
@@ -260,12 +257,13 @@ import { test, expect } from "@playwright/test";
|
|
|
260
257
|
import { allure } from "allure-playwright";
|
|
261
258
|
|
|
262
259
|
test("basic test", async ({ page }, testInfo) => {
|
|
263
|
-
allure.
|
|
260
|
+
allure.parameter("parameterName", "parameterValue");
|
|
264
261
|
});
|
|
265
262
|
```
|
|
266
263
|
|
|
267
|
-
Also
|
|
268
|
-
`
|
|
264
|
+
Also parameter takes an third optional parameter with the hidden and excluded options:
|
|
265
|
+
`mode: "hidden" | "masked"` - `masked` hide parameter value to secure sensitive data, and `hidden` entirely hide parameter from report
|
|
266
|
+
|
|
269
267
|
`excluded: true` - excludes parameter from the history
|
|
270
268
|
|
|
271
269
|
```ts
|
|
@@ -273,6 +271,69 @@ import { test, expect } from "@playwright/test";
|
|
|
273
271
|
import { allure } from "allure-playwright";
|
|
274
272
|
|
|
275
273
|
test("basic test", async ({ page }, testInfo) => {
|
|
276
|
-
allure.addParameter("parameterName", "parameterValue", {
|
|
274
|
+
allure.addParameter("parameterName", "parameterValue", { mode: "masked", excluded: true });
|
|
277
275
|
});
|
|
278
276
|
```
|
|
277
|
+
|
|
278
|
+
### Selective test execution
|
|
279
|
+
|
|
280
|
+
Allure allow you to execute only a subset of tests. This is useful when you want to run only a specific test or a group of tests.
|
|
281
|
+
|
|
282
|
+
To enable this feature, you need to add the following code to your `playwright.config.js`:
|
|
283
|
+
|
|
284
|
+
```diff
|
|
285
|
+
+ import { testPlanFilter } from "allure-playwright/dist/testplan";
|
|
286
|
+
export default {
|
|
287
|
+
reporter: [
|
|
288
|
+
[
|
|
289
|
+
"allure-playwright",
|
|
290
|
+
],
|
|
291
|
+
],
|
|
292
|
+
projects: [
|
|
293
|
+
{
|
|
294
|
+
name: "chromium",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
+ grep: testPlanFilter()
|
|
298
|
+
};
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Allure will read `ALLURE_TESTPLAN_PATH` environment variable and read testplan from the specified file.
|
|
302
|
+
|
|
303
|
+
### EnvironmentInfo usage
|
|
304
|
+
|
|
305
|
+
Allure allows you to add environment information to the report. This is useful when you want to add some additional information to the report.
|
|
306
|
+
|
|
307
|
+
to enable this feature, you need to add the following field to your `playwright.config.js`:
|
|
308
|
+
|
|
309
|
+
```diff
|
|
310
|
+
export default {
|
|
311
|
+
reporter: [
|
|
312
|
+
[
|
|
313
|
+
"allure-playwright",
|
|
314
|
+
{
|
|
315
|
+
+ environmentInfo: {
|
|
316
|
+
+ E2E_NODE_VERSION: process.version,
|
|
317
|
+
+ E2E_OS: process.platform,
|
|
318
|
+
+ },
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
],
|
|
322
|
+
};
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Visual comparisons usage
|
|
326
|
+
|
|
327
|
+
Allure allows you to add visual comparisons to the report. This is useful when you want to add some additional information to the report.
|
|
328
|
+
|
|
329
|
+
```ts
|
|
330
|
+
import { test, expect } from "@playwright/test";
|
|
331
|
+
test("screendiff", async ({ page }) => {
|
|
332
|
+
await page.goto("https://playwright.dev/");
|
|
333
|
+
await expect(page).toHaveScreenshot();
|
|
334
|
+
});
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
If screenshots don't match, the report shows difference between them.
|
|
338
|
+
|
|
339
|
+

|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Label, Link, MetadataMessage, ParameterOptions } from "allure-js-commons";
|
|
2
2
|
export declare class allure {
|
|
3
3
|
static addMetadataAttachment(metadata: MetadataMessage): void;
|
|
4
|
-
static label(label:
|
|
4
|
+
static label(label: string, value: string): void;
|
|
5
|
+
static labels(...values: Label[]): void;
|
|
5
6
|
static description(value: string): void;
|
|
6
|
-
static link(
|
|
7
|
+
static link(url: string, name?: string, type?: string): void;
|
|
8
|
+
static links(...values: Link[]): void;
|
|
7
9
|
static id(id: string): void;
|
|
8
10
|
static epic(epic: string): void;
|
|
9
11
|
static feature(epic: string): void;
|
|
@@ -11,12 +13,14 @@ export declare class allure {
|
|
|
11
13
|
static suite(name: string): void;
|
|
12
14
|
static parentSuite(name: string): void;
|
|
13
15
|
static layer(layerName: string): void;
|
|
14
|
-
static addParameter(name: string, value: string, options?: ParameterOptions): void;
|
|
15
16
|
static subSuite(name: string): void;
|
|
16
17
|
static owner(owner: string): void;
|
|
17
18
|
static severity(severity: string): void;
|
|
18
|
-
static tag(
|
|
19
|
-
static
|
|
20
|
-
static
|
|
19
|
+
static tag(tag: string): void;
|
|
20
|
+
static tags(...values: string[]): void;
|
|
21
|
+
static issue(name: string, url: string): void;
|
|
22
|
+
static tms(name: string, url: string): void;
|
|
23
|
+
static parameter(name: string, value: string, options?: ParameterOptions): void;
|
|
24
|
+
static addParameter(name: string, value: string, options?: ParameterOptions): void;
|
|
21
25
|
}
|
|
22
26
|
export { LabelName } from "allure-js-commons";
|
package/dist/helpers.js
CHANGED
|
@@ -14,111 +14,80 @@ class allure {
|
|
|
14
14
|
body: Buffer.from(JSON.stringify(metadata), "utf8"),
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
static label(label) {
|
|
17
|
+
static label(label, value) {
|
|
18
18
|
this.addMetadataAttachment({
|
|
19
|
-
labels:
|
|
19
|
+
labels: [{ name: label, value }],
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
+
static labels(...values) {
|
|
23
|
+
values.forEach(({ name, value }) => this.label(name, value));
|
|
24
|
+
}
|
|
22
25
|
static description(value) {
|
|
23
26
|
this.addMetadataAttachment({
|
|
24
27
|
description: value,
|
|
25
28
|
});
|
|
26
29
|
}
|
|
27
|
-
static link(
|
|
30
|
+
static link(url, name, type) {
|
|
28
31
|
this.addMetadataAttachment({
|
|
29
|
-
links:
|
|
32
|
+
links: [{ url, name, type }],
|
|
30
33
|
});
|
|
31
34
|
}
|
|
35
|
+
static links(...values) {
|
|
36
|
+
values.forEach(({ url, name, type }) => this.link(url, name, type));
|
|
37
|
+
}
|
|
32
38
|
static id(id) {
|
|
33
|
-
this.label(
|
|
34
|
-
value: id,
|
|
35
|
-
name: allure_js_commons_1.LabelName.AS_ID,
|
|
36
|
-
});
|
|
39
|
+
this.label(allure_js_commons_1.LabelName.ALLURE_ID, id);
|
|
37
40
|
}
|
|
38
41
|
static epic(epic) {
|
|
39
|
-
this.label(
|
|
40
|
-
name: allure_js_commons_1.LabelName.EPIC,
|
|
41
|
-
value: epic,
|
|
42
|
-
});
|
|
42
|
+
this.label(allure_js_commons_1.LabelName.EPIC, epic);
|
|
43
43
|
}
|
|
44
44
|
static feature(epic) {
|
|
45
|
-
this.label(
|
|
46
|
-
name: allure_js_commons_1.LabelName.FEATURE,
|
|
47
|
-
value: epic,
|
|
48
|
-
});
|
|
45
|
+
this.label(allure_js_commons_1.LabelName.FEATURE, epic);
|
|
49
46
|
}
|
|
50
47
|
static story(story) {
|
|
51
|
-
this.label(
|
|
52
|
-
name: allure_js_commons_1.LabelName.STORY,
|
|
53
|
-
value: story,
|
|
54
|
-
});
|
|
48
|
+
this.label(allure_js_commons_1.LabelName.STORY, story);
|
|
55
49
|
}
|
|
56
50
|
static suite(name) {
|
|
57
|
-
this.label(
|
|
58
|
-
name: allure_js_commons_1.LabelName.SUITE,
|
|
59
|
-
value: name,
|
|
60
|
-
});
|
|
51
|
+
this.label(allure_js_commons_1.LabelName.SUITE, name);
|
|
61
52
|
}
|
|
62
53
|
static parentSuite(name) {
|
|
63
|
-
this.label(
|
|
64
|
-
name: allure_js_commons_1.LabelName.PARENT_SUITE,
|
|
65
|
-
value: name,
|
|
66
|
-
});
|
|
54
|
+
this.label(allure_js_commons_1.LabelName.PARENT_SUITE, name);
|
|
67
55
|
}
|
|
68
56
|
static layer(layerName) {
|
|
69
|
-
this.label(
|
|
70
|
-
name: allure_js_commons_1.LabelName.LAYER,
|
|
71
|
-
value: layerName,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
static addParameter(name, value, options) {
|
|
75
|
-
this.addMetadataAttachment({
|
|
76
|
-
parameter: [
|
|
77
|
-
Object.assign({ name,
|
|
78
|
-
value }, options),
|
|
79
|
-
],
|
|
80
|
-
});
|
|
57
|
+
this.label(allure_js_commons_1.LabelName.LAYER, layerName);
|
|
81
58
|
}
|
|
82
59
|
static subSuite(name) {
|
|
83
|
-
this.label(
|
|
84
|
-
name: allure_js_commons_1.LabelName.SUB_SUITE,
|
|
85
|
-
value: name,
|
|
86
|
-
});
|
|
60
|
+
this.label(allure_js_commons_1.LabelName.SUB_SUITE, name);
|
|
87
61
|
}
|
|
88
62
|
static owner(owner) {
|
|
89
|
-
this.label(
|
|
90
|
-
name: allure_js_commons_1.LabelName.OWNER,
|
|
91
|
-
value: owner,
|
|
92
|
-
});
|
|
63
|
+
this.label(allure_js_commons_1.LabelName.OWNER, owner);
|
|
93
64
|
}
|
|
94
65
|
static severity(severity) {
|
|
95
|
-
this.label(
|
|
96
|
-
name: allure_js_commons_1.LabelName.SEVERITY,
|
|
97
|
-
value: severity,
|
|
98
|
-
});
|
|
66
|
+
this.label(allure_js_commons_1.LabelName.SEVERITY, severity);
|
|
99
67
|
}
|
|
100
|
-
static tag(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
name: issueData.name,
|
|
112
|
-
type: allure_js_commons_1.LinkType.ISSUE,
|
|
113
|
-
});
|
|
68
|
+
static tag(tag) {
|
|
69
|
+
this.label(allure_js_commons_1.LabelName.TAG, tag);
|
|
70
|
+
}
|
|
71
|
+
static tags(...values) {
|
|
72
|
+
values.forEach((value) => this.tag(value));
|
|
73
|
+
}
|
|
74
|
+
static issue(name, url) {
|
|
75
|
+
this.link(url, name, allure_js_commons_1.LinkType.ISSUE);
|
|
76
|
+
}
|
|
77
|
+
static tms(name, url) {
|
|
78
|
+
this.link(url, name, allure_js_commons_1.LinkType.TMS);
|
|
114
79
|
}
|
|
115
|
-
static
|
|
116
|
-
this.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
80
|
+
static parameter(name, value, options) {
|
|
81
|
+
this.addMetadataAttachment({
|
|
82
|
+
parameter: [
|
|
83
|
+
Object.assign({ name,
|
|
84
|
+
value }, options),
|
|
85
|
+
],
|
|
120
86
|
});
|
|
121
87
|
}
|
|
88
|
+
static addParameter(name, value, options) {
|
|
89
|
+
this.parameter(name, value, options);
|
|
90
|
+
}
|
|
122
91
|
}
|
|
123
92
|
exports.allure = allure;
|
|
124
93
|
var allure_js_commons_2 = require("allure-js-commons");
|
package/dist/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,yDAO2B;AAC3B,yDAA0E;AAE1E,MAAa,MAAM;IACjB,MAAM,CAAC,qBAAqB,CAAC,QAAyB;QACpD,cAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,sBAAsB,EAAE;YACzC,WAAW,EAAE,uCAA4B;YACzC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;SACpD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,yDAO2B;AAC3B,yDAA0E;AAE1E,MAAa,MAAM;IACjB,MAAM,CAAC,qBAAqB,CAAC,QAAyB;QACpD,cAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,sBAAsB,EAAE;YACzC,WAAW,EAAE,uCAA4B;YACzC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CA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,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAY,EAAE,GAAW;QACpC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,4BAAQ,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,GAAW;QAClC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,4BAAQ,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,IAAY,EAAE,KAAa,EAAE,OAA0B;QACtE,IAAI,CAAC,qBAAqB,CAAC;YACzB,SAAS,EAAE;gCAEP,IAAI;oBACJ,KAAK,IACF,OAAO;aAEb;SACF,CAAC,CAAC;IACL,CAAC;IAKD,MAAM,CAAC,YAAY,CAAC,IAAY,EAAE,KAAa,EAAE,OAA0B;QACzE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AA5GD,wBA4GC;AAED,uDAA8C;AAArC,8GAAA,SAAS,OAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,12 +19,15 @@ declare class AllureReporter implements Reporter {
|
|
|
19
19
|
private allureTestCache;
|
|
20
20
|
private allureStepCache;
|
|
21
21
|
private hostname;
|
|
22
|
+
private globalStartTime;
|
|
23
|
+
private processedDiffs;
|
|
22
24
|
constructor(options?: AllureReporterOptions);
|
|
23
25
|
onBegin(config: FullConfig, suite: Suite): void;
|
|
24
26
|
onTestBegin(test: TestCase): void;
|
|
25
27
|
onStepBegin(test: TestCase, _result: TestResult, step: TestStep): void;
|
|
26
28
|
onStepEnd(_test: TestCase, _result: TestResult, step: TestStep): void;
|
|
27
|
-
onTestEnd(test: TestCase, result: TestResult): void
|
|
29
|
+
onTestEnd(test: TestCase, result: TestResult): Promise<void>;
|
|
30
|
+
addSkippedResults(): void;
|
|
28
31
|
onEnd(): void;
|
|
29
32
|
private getAllureRuntime;
|
|
30
33
|
private ensureAllureGroupCreated;
|
package/dist/index.js
CHANGED
|
@@ -28,13 +28,15 @@ class AllureReporter {
|
|
|
28
28
|
this.allureTestCache = new Map();
|
|
29
29
|
this.allureStepCache = new Map();
|
|
30
30
|
this.hostname = process_1.default.env.ALLURE_HOST_NAME || os_1.default.hostname();
|
|
31
|
+
this.globalStartTime = new Date();
|
|
32
|
+
this.processedDiffs = [];
|
|
31
33
|
this.options = options;
|
|
32
34
|
}
|
|
33
35
|
onBegin(config, suite) {
|
|
34
36
|
var _a, _b;
|
|
35
37
|
this.config = config;
|
|
36
38
|
this.suite = suite;
|
|
37
|
-
this.resultsDir = allureReportFolder(this.options.outputFolder);
|
|
39
|
+
this.resultsDir = (0, allure_js_commons_1.allureReportFolder)(this.options.outputFolder);
|
|
38
40
|
this.allureRuntime = new allure_js_commons_1.AllureRuntime({
|
|
39
41
|
resultsDir: this.resultsDir,
|
|
40
42
|
writer: this.allureWriter,
|
|
@@ -66,9 +68,11 @@ class AllureReporter {
|
|
|
66
68
|
.relative(project === null || project === void 0 ? void 0 : project.testDir, test.location.file)
|
|
67
69
|
.split(path_1.default.sep)
|
|
68
70
|
.join("/");
|
|
69
|
-
const
|
|
71
|
+
const nameSuites = suiteTitles.length > 0 ? `${suiteTitles.join(" ")} ` : "";
|
|
72
|
+
const fullName = `${relativeFile}#${nameSuites}${test.title}`;
|
|
73
|
+
const testCaseIdSource = `${relativeFile}#${test.title}`;
|
|
70
74
|
allureTest.fullName = fullName;
|
|
71
|
-
allureTest.testCaseId = (0, allure_js_commons_1.md5)(
|
|
75
|
+
allureTest.testCaseId = (0, allure_js_commons_1.md5)(testCaseIdSource);
|
|
72
76
|
allureTest.historyId = (0, allure_js_commons_1.md5)(`${fullName}${project.name || ""}`);
|
|
73
77
|
this.allureTestCache.set(test, allureTest);
|
|
74
78
|
}
|
|
@@ -93,8 +97,8 @@ class AllureReporter {
|
|
|
93
97
|
allureStep.endStep();
|
|
94
98
|
allureStep.status = step.error ? allure_js_commons_1.Status.FAILED : allure_js_commons_1.Status.PASSED;
|
|
95
99
|
}
|
|
96
|
-
onTestEnd(test, result) {
|
|
97
|
-
var _a, _b, _c;
|
|
100
|
+
async onTestEnd(test, result) {
|
|
101
|
+
var _a, _b, _c, _d;
|
|
98
102
|
const runtime = this.getAllureRuntime();
|
|
99
103
|
const allureTest = this.allureTestCache.get(test);
|
|
100
104
|
if (!allureTest) {
|
|
@@ -107,8 +111,8 @@ class AllureReporter {
|
|
|
107
111
|
allureTest.addLabel(allure_js_commons_1.LabelName.THREAD, thread);
|
|
108
112
|
allureTest.status = statusToAllureStats(result.status, test.expectedStatus);
|
|
109
113
|
if (result.error) {
|
|
110
|
-
const message = result.error.message && stripAscii(result.error.message);
|
|
111
|
-
let trace = result.error.stack && stripAscii(result.error.stack);
|
|
114
|
+
const message = result.error.message && (0, allure_js_commons_1.stripAscii)(result.error.message);
|
|
115
|
+
let trace = result.error.stack && (0, allure_js_commons_1.stripAscii)(result.error.stack);
|
|
112
116
|
if (trace && message && trace.startsWith(`Error: ${message}`)) {
|
|
113
117
|
trace = trace.substr(message.length + "Error: ".length);
|
|
114
118
|
}
|
|
@@ -129,8 +133,8 @@ class AllureReporter {
|
|
|
129
133
|
(_a = metadata.links) === null || _a === void 0 ? void 0 : _a.forEach((val) => allureTest.addLink(val.url, val.name, val.type));
|
|
130
134
|
(_b = metadata.labels) === null || _b === void 0 ? void 0 : _b.forEach((val) => allureTest.addLabel(val.name, val.value));
|
|
131
135
|
(_c = metadata.parameter) === null || _c === void 0 ? void 0 : _c.forEach((val) => allureTest.addParameter(val.name, val.value, {
|
|
132
|
-
hidden: val.hidden,
|
|
133
136
|
excluded: val.excluded,
|
|
137
|
+
mode: val.mode,
|
|
134
138
|
}));
|
|
135
139
|
if (metadata.description) {
|
|
136
140
|
allureTest.description = metadata.description;
|
|
@@ -147,14 +151,22 @@ class AllureReporter {
|
|
|
147
151
|
}
|
|
148
152
|
fileName = runtime.writeAttachmentFromPath(attachment.path, attachment.contentType);
|
|
149
153
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
const diffEndRegexp = /-((expected)|(diff)|(actual))\.png$/;
|
|
155
|
+
if (attachment.name.match(diffEndRegexp)) {
|
|
156
|
+
const pathWithoutEnd = attachment.path.replace(diffEndRegexp, "");
|
|
157
|
+
if (this.processedDiffs.includes(pathWithoutEnd)) {
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
const actualBase64 = await (0, allure_js_commons_1.readImageAsBase64)(`${pathWithoutEnd}-actual.png`), expectedBase64 = await (0, allure_js_commons_1.readImageAsBase64)(`${pathWithoutEnd}-expected.png`), diffBase64 = await (0, allure_js_commons_1.readImageAsBase64)(`${pathWithoutEnd}-diff.png`);
|
|
161
|
+
const diffName = attachment.name.replace(diffEndRegexp, "");
|
|
162
|
+
const res = (_d = this.allureRuntime) === null || _d === void 0 ? void 0 : _d.writeAttachment(JSON.stringify({
|
|
163
|
+
expected: expectedBase64,
|
|
164
|
+
actual: actualBase64,
|
|
165
|
+
diff: diffBase64,
|
|
166
|
+
name: diffName,
|
|
167
|
+
}), { contentType: internal_1.ALLURE_IMAGEDIFF_CONTENT_TYPE, fileExtension: "imagediff" });
|
|
168
|
+
allureTest.addAttachment(diffName, { contentType: internal_1.ALLURE_IMAGEDIFF_CONTENT_TYPE }, res);
|
|
169
|
+
this.processedDiffs.push(pathWithoutEnd);
|
|
158
170
|
}
|
|
159
171
|
else {
|
|
160
172
|
allureTest.addAttachment(attachment.name, attachment.contentType, fileName);
|
|
@@ -164,14 +176,42 @@ class AllureReporter {
|
|
|
164
176
|
}
|
|
165
177
|
}
|
|
166
178
|
if (result.stdout.length > 0) {
|
|
167
|
-
allureTest.addAttachment("stdout", "text/plain", runtime.writeAttachment(stripAscii(result.stdout.join("")), "text/plain"));
|
|
179
|
+
allureTest.addAttachment("stdout", "text/plain", runtime.writeAttachment((0, allure_js_commons_1.stripAscii)(result.stdout.join("")), "text/plain"));
|
|
168
180
|
}
|
|
169
181
|
if (result.stderr.length > 0) {
|
|
170
|
-
allureTest.addAttachment("stderr", "text/plain", runtime.writeAttachment(stripAscii(result.stderr.join("")), "text/plain"));
|
|
182
|
+
allureTest.addAttachment("stderr", "text/plain", runtime.writeAttachment((0, allure_js_commons_1.stripAscii)(result.stderr.join("")), "text/plain"));
|
|
171
183
|
}
|
|
172
184
|
allureTest.endTest();
|
|
173
185
|
}
|
|
186
|
+
addSkippedResults() {
|
|
187
|
+
const unprocessedCases = this.suite
|
|
188
|
+
.allTests()
|
|
189
|
+
.filter((testCase) => !this.allureTestCache.has(testCase));
|
|
190
|
+
unprocessedCases.forEach((testCase) => {
|
|
191
|
+
this.onTestBegin(testCase);
|
|
192
|
+
const allureTest = this.allureTestCache.get(testCase);
|
|
193
|
+
if (allureTest) {
|
|
194
|
+
allureTest.addLabel(allure_js_commons_1.LabelName.ALLURE_ID, "-1");
|
|
195
|
+
allureTest.detailsMessage =
|
|
196
|
+
"This test was skipped due to test setup error. Check you setup scripts to fix the issue.";
|
|
197
|
+
}
|
|
198
|
+
this.onTestEnd(testCase, {
|
|
199
|
+
status: allure_js_commons_1.Status.SKIPPED,
|
|
200
|
+
attachments: [],
|
|
201
|
+
duration: 0,
|
|
202
|
+
errors: [],
|
|
203
|
+
parallelIndex: 0,
|
|
204
|
+
workerIndex: 0,
|
|
205
|
+
retry: 0,
|
|
206
|
+
steps: [],
|
|
207
|
+
stderr: [],
|
|
208
|
+
stdout: [],
|
|
209
|
+
startTime: this.globalStartTime,
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}
|
|
174
213
|
onEnd() {
|
|
214
|
+
this.addSkippedResults();
|
|
175
215
|
for (const group of this.allureGroupCache.values()) {
|
|
176
216
|
group.endGroup();
|
|
177
217
|
}
|
|
@@ -229,10 +269,6 @@ const statusToAllureStats = (status, expectedStatus) => {
|
|
|
229
269
|
return allure_js_commons_1.Status.FAILED;
|
|
230
270
|
};
|
|
231
271
|
exports.default = AllureReporter;
|
|
232
|
-
const asciiRegex = new RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))", "g");
|
|
233
|
-
const stripAscii = (str) => {
|
|
234
|
-
return str.replace(asciiRegex, "");
|
|
235
|
-
};
|
|
236
272
|
const appendStep = (parent, step) => {
|
|
237
273
|
const allureStep = parent.startStep(step.title, step.startTime.getTime());
|
|
238
274
|
allureStep.endStep(step.startTime.getTime() + step.duration);
|
|
@@ -241,17 +277,5 @@ const appendStep = (parent, step) => {
|
|
|
241
277
|
appendStep(allureStep, child);
|
|
242
278
|
}
|
|
243
279
|
};
|
|
244
|
-
const allureReportFolder = (outputFolder) => {
|
|
245
|
-
if (process_1.default.env.ALLURE_RESULTS_DIR) {
|
|
246
|
-
return path_1.default.resolve(process_1.default.cwd(), process_1.default.env.ALLURE_RESULTS_DIR);
|
|
247
|
-
}
|
|
248
|
-
if (outputFolder) {
|
|
249
|
-
return outputFolder;
|
|
250
|
-
}
|
|
251
|
-
return defaultReportFolder();
|
|
252
|
-
};
|
|
253
|
-
const defaultReportFolder = () => {
|
|
254
|
-
return path_1.default.resolve(process_1.default.cwd(), "allure-results");
|
|
255
|
-
};
|
|
256
280
|
__exportStar(require("./helpers"), exports);
|
|
257
281
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBA,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,sDAA8B;AAG9B,yDAY2B;AAC3B,yDAA0E;AAU1E,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AAE,EAAE;QACpC,UAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;KAC/B;AACH,CAAC,CAAC;AAEF,4CAA0B"}
|
package/dist/testplan.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.testPlanFilter = void 0;
|
|
4
|
+
const allure_js_commons_1 = require("allure-js-commons");
|
|
5
|
+
const testPlanFilter = () => {
|
|
6
|
+
const testPlan = (0, allure_js_commons_1.parseTestPlan)();
|
|
7
|
+
if (!testPlan) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
const selectedTests = testPlan.tests.map((testInfo) => {
|
|
11
|
+
const pattern = testInfo.selector.replace("#", " ");
|
|
12
|
+
return new RegExp((0, allure_js_commons_1.escapeRegExp)(pattern));
|
|
13
|
+
});
|
|
14
|
+
return selectedTests;
|
|
15
|
+
};
|
|
16
|
+
exports.testPlanFilter = testPlanFilter;
|
|
17
|
+
//# sourceMappingURL=testplan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testplan.js","sourceRoot":"","sources":["../src/testplan.ts"],"names":[],"mappings":";;;AAAA,yDAAgE;AAUzD,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,IAAA,iCAAa,GAAE,CAAC;IACjC,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QACpD,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACpD,OAAO,IAAI,MAAM,CAAC,IAAA,gCAAY,EAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAZW,QAAA,cAAc,kBAYzB"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure-playwright",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Allure Playwright integration",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
7
|
-
"name": "
|
|
7
|
+
"name": "Qameta Software",
|
|
8
|
+
"email": "allure@qameta.io",
|
|
9
|
+
"url": "https://qameta.io/"
|
|
8
10
|
},
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
"typescript": "^4.4.2"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
|
-
"allure-js-commons": "2.
|
|
37
|
+
"allure-js-commons": "2.1.0"
|
|
36
38
|
},
|
|
37
39
|
"files": [
|
|
38
40
|
"dist"
|
package/LICENSE.txt
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright (c) Microsoft Corporation.
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|