allure-playwright 2.0.0-beta.16 → 2.0.0-beta.19
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 +154 -10
- package/dist/helpers.d.ts +4 -2
- package/dist/helpers.js +15 -5
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +39 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,6 +24,14 @@ Either add **allure-playwright** into **playwright.config.ts**:
|
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
Or pass the same value via config file:
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
{
|
|
31
|
+
reporter: [['line'], ['allure-playwright']]
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
27
35
|
Or pass the same value via command line:
|
|
28
36
|
|
|
29
37
|
```bash
|
|
@@ -45,17 +53,74 @@ set ALLURE_RESULTS_DIR=my-allure-results
|
|
|
45
53
|
npx playwright test --reporter=line,allure-playwright
|
|
46
54
|
```
|
|
47
55
|
|
|
48
|
-
|
|
56
|
+
Generate Allure Report:
|
|
57
|
+
```bash
|
|
58
|
+
allure generate my-allure-results -o allure-report --clean
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Open Allure Report:
|
|
62
|
+
```bash
|
|
63
|
+
allure open allure-report
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Reporter options
|
|
67
|
+
|
|
68
|
+
Some reporter settings can set by following options:
|
|
69
|
+
|
|
70
|
+
| Option | Description | Default |
|
|
71
|
+
|--------------|------------------------------------------------------------------------------|--------------------|
|
|
72
|
+
| outputFolder | Path to results folder. | `./allure-results` |
|
|
73
|
+
| detail | Hide `pw:api` and `hooks` steps in report. [See below](#hooks-and-api-calls) | `true` |
|
|
74
|
+
| suiteTitle | Use test title instead of `allure.suite()`. [See below](#suit-title) | `true` |
|
|
75
|
+
|
|
76
|
+
### Options Usage
|
|
49
77
|
|
|
50
78
|
```js
|
|
51
79
|
const config = {
|
|
52
|
-
reporter: [
|
|
80
|
+
reporter: [['allure-playwright', {
|
|
81
|
+
detail: true,
|
|
82
|
+
outputFolder: 'my-allure-results',
|
|
83
|
+
suiteTitle: false
|
|
84
|
+
}]],
|
|
53
85
|
};
|
|
54
86
|
```
|
|
55
87
|
|
|
88
|
+
### Options for Allure TestOps compatibility
|
|
89
|
+
|
|
90
|
+
After exporting test results into Allure TestOps, the results may contain extra steps with Playwright’s API calls, as
|
|
91
|
+
well as collisions in the name of the suits.
|
|
92
|
+
|
|
93
|
+
#### Hooks and API calls
|
|
94
|
+
|
|
95
|
+
By default, each step of the `test.step()` functions contains subsections Playwright’s API methods calls.
|
|
96
|
+
|
|
97
|
+
The report looks like:
|
|
98
|
+
|
|
99
|
+
```text
|
|
100
|
+
> Before Hooks
|
|
101
|
+
> browserContext.newPage
|
|
102
|
+
|
|
103
|
+
> Open example.com
|
|
104
|
+
> page.goto( https://example.com/)
|
|
105
|
+
|
|
106
|
+
> Expect page text
|
|
107
|
+
> expect.toBeVisible
|
|
108
|
+
|
|
109
|
+
> After Hooks
|
|
110
|
+
> browserContext.close
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
To hide steps with `Before / After hooks` and API calls `page / expect / browser` set the option `detail: false`
|
|
114
|
+
|
|
115
|
+
#### Suit title
|
|
116
|
+
|
|
117
|
+
By default, the reporter uses the test file path as the suite name.
|
|
118
|
+
|
|
119
|
+
If tests uses the `allure.suite()` and it's value must be used in Allure TestOps custom fields, then set the option `suiteTitle: false`
|
|
120
|
+
|
|
56
121
|
## Proving extra information
|
|
57
122
|
|
|
58
|
-
|
|
123
|
+
Tests extra information can be provided by labels:
|
|
59
124
|
|
|
60
125
|
- label
|
|
61
126
|
- link
|
|
@@ -76,14 +141,12 @@ You can use allure labels to provide extra information about tests such via
|
|
|
76
141
|
|
|
77
142
|
```js
|
|
78
143
|
import { test, expect } from "@playwright/test";
|
|
79
|
-
import { allure } from "allure-playwright";
|
|
144
|
+
import { allure, LabelName } from "allure-playwright";
|
|
80
145
|
|
|
81
146
|
test("basic test", async ({ page }, testInfo) => {
|
|
82
|
-
|
|
83
|
-
allure.story("Some Story");
|
|
147
|
+
allure.label({ name: LabelName.LANGUAGE, value: "typescript" });
|
|
84
148
|
});
|
|
85
149
|
```
|
|
86
|
-
|
|
87
150
|
### Links Usage
|
|
88
151
|
|
|
89
152
|
```js
|
|
@@ -99,14 +162,95 @@ test("basic test", async ({ page }, testInfo) => {
|
|
|
99
162
|
});
|
|
100
163
|
```
|
|
101
164
|
|
|
165
|
+
### Id Usage
|
|
166
|
+
|
|
167
|
+
```js
|
|
168
|
+
import { test, expect } from "@playwright/test";
|
|
169
|
+
import { allure, LabelName } from "allure-playwright";
|
|
170
|
+
|
|
171
|
+
test("basic test", async ({ page }, testInfo) => {
|
|
172
|
+
allure.id("Some id");
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Epics Usage
|
|
177
|
+
|
|
178
|
+
```js
|
|
179
|
+
import { test, expect } from "@playwright/test";
|
|
180
|
+
import { allure } from "allure-playwright";
|
|
181
|
+
|
|
182
|
+
test("basic test", async ({ page }, testInfo) => {
|
|
183
|
+
allure.epic("Some Epic");
|
|
184
|
+
});
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Stories Usage
|
|
188
|
+
|
|
189
|
+
```js
|
|
190
|
+
import { test, expect } from "@playwright/test";
|
|
191
|
+
import { allure } from "allure-playwright";
|
|
192
|
+
|
|
193
|
+
test("basic test", async ({ page }, testInfo) => {
|
|
194
|
+
allure.story("Some Story");
|
|
195
|
+
});
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Screenshot usage
|
|
199
|
+
```ts
|
|
200
|
+
test("basic test", async ({ page }, testInfo) => {
|
|
201
|
+
await testInfo.attach("basic-page-screen", {
|
|
202
|
+
body: await page.screenshot(),
|
|
203
|
+
contentType: "image/png",
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
|
|
102
210
|
### Attachments Usage
|
|
103
211
|
|
|
104
212
|
```js
|
|
105
213
|
import { test, expect } from "@playwright/test";
|
|
106
214
|
|
|
215
|
+
export const TODO_ITEMS = [
|
|
216
|
+
"buy some cheese",
|
|
217
|
+
"feed the cat",
|
|
218
|
+
"book a doctors appointment",
|
|
219
|
+
];
|
|
220
|
+
|
|
221
|
+
test("basic test", async ({ page }, testInfo) => {
|
|
222
|
+
await testInfo.attach("TODO_ITEMS", {
|
|
223
|
+
body: JSON.stringify(TODO_ITEMS),
|
|
224
|
+
contentType: "application/json",
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Steps usage
|
|
231
|
+
|
|
232
|
+
```ts
|
|
233
|
+
import { test, expect } from "@playwright/test";
|
|
234
|
+
|
|
235
|
+
export const TODO_ITEMS = [
|
|
236
|
+
"buy some cheese",
|
|
237
|
+
"feed the cat",
|
|
238
|
+
"book a doctors appointment"
|
|
239
|
+
];
|
|
240
|
+
|
|
107
241
|
test("basic test", async ({ page }, testInfo) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
242
|
+
await test.step("Visit todolist page", async () => {
|
|
243
|
+
await page.goto("https://demo.playwright.dev/todomvc");
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
await test.step("Create 1st todo.", async () => {
|
|
247
|
+
await page.locator(".new-todo").fill(TODO_ITEMS[0]);
|
|
248
|
+
await page.locator(".new-todo").press("Enter");
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
await expect(
|
|
252
|
+
page.locator(".view label"),
|
|
253
|
+
"Make sure the list only has one todo item.",
|
|
254
|
+
).toHaveText([TODO_ITEMS[0]]);
|
|
111
255
|
});
|
|
112
256
|
```
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Label, Link } from "allure-js-commons";
|
|
1
|
+
import { Label, Link, Parameter, ParameterOptions } from "allure-js-commons";
|
|
2
2
|
export declare const ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json";
|
|
3
3
|
export interface Metadata {
|
|
4
4
|
labels?: Label[];
|
|
5
5
|
links?: Link[];
|
|
6
6
|
description?: string;
|
|
7
|
+
parameter?: Parameter[];
|
|
7
8
|
}
|
|
8
9
|
export declare class allure {
|
|
9
10
|
static addMetadataAttachment(metadata: Metadata): void;
|
|
@@ -16,10 +17,11 @@ export declare class allure {
|
|
|
16
17
|
static story(story: string): void;
|
|
17
18
|
static suite(name: string): void;
|
|
18
19
|
static parentSuite(name: string): void;
|
|
20
|
+
static addParameter(name: string, value: string, options?: ParameterOptions): void;
|
|
19
21
|
static subSuite(name: string): void;
|
|
20
22
|
static owner(owner: string): void;
|
|
21
23
|
static severity(severity: string): void;
|
|
22
|
-
static tag(
|
|
24
|
+
static tag(...tags: string[]): void;
|
|
23
25
|
static issue(issueData: Omit<Link, "type">): void;
|
|
24
26
|
static tms(issueData: Omit<Link, "type">): void;
|
|
25
27
|
}
|
package/dist/helpers.js
CHANGED
|
@@ -65,6 +65,14 @@ class allure {
|
|
|
65
65
|
value: name,
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
static addParameter(name, value, options) {
|
|
69
|
+
this.addMetadataAttachment({
|
|
70
|
+
parameter: [
|
|
71
|
+
Object.assign({ name,
|
|
72
|
+
value }, options),
|
|
73
|
+
],
|
|
74
|
+
});
|
|
75
|
+
}
|
|
68
76
|
static subSuite(name) {
|
|
69
77
|
this.label({
|
|
70
78
|
name: allure_js_commons_1.LabelName.SUB_SUITE,
|
|
@@ -83,11 +91,13 @@ class allure {
|
|
|
83
91
|
value: severity,
|
|
84
92
|
});
|
|
85
93
|
}
|
|
86
|
-
static tag(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
static tag(...tags) {
|
|
95
|
+
for (const tag of tags) {
|
|
96
|
+
this.label({
|
|
97
|
+
name: allure_js_commons_1.LabelName.TAG,
|
|
98
|
+
value: tag,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
91
101
|
}
|
|
92
102
|
static issue(issueData) {
|
|
93
103
|
this.link({
|
package/dist/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,yDAAkG;AAErF,QAAA,4BAA4B,GAAG,sCAAsC,CAAC;AAQnF,MAAa,MAAM;IACjB,MAAM,CAAC,qBAAqB,CAAC,QAAkB;QAC7C,cAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,sBAAsB,EAAE;YACzC,WAAW,EAAE,oCAA4B;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,KAAsB;QACjC,IAAI,CAAC,qBAAqB,CAAC;YACzB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;SAC/C,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,IAAI,CAAC,qBAAqB,CAAC;YACzB,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,IAAU;QACpB,IAAI,CAAC,qBAAqB,CAAC;YACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAA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1B,IAAI,CAAC,KAAK,CAAC;YACT,IAAI,EAAE,6BAAS,CAAC,SAAS;YACzB,KAAK,EAAE,IAAI;SACZ,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,KAAa;QACxB,IAAI,CAAC,KAAK,CAAC;YACT,IAAI,EAAE,6BAAS,CAAC,KAAK;YACrB,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAgB;QAC9B,IAAI,CAAC,KAAK,CAAC;YACT,IAAI,EAAE,6BAAS,CAAC,QAAQ;YACxB,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,GAAG,IAAc;QAC1B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,IAAI,CAAC,KAAK,CAAC;gBACT,IAAI,EAAE,6BAAS,CAAC,GAAG;gBACnB,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;SACJ;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,SAA6B;QACxC,IAAI,CAAC,IAAI,CAAC;YACR,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,IAAI,EAAE,4BAAQ,CAAC,KAAK;SACrB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,SAA6B;QACtC,IAAI,CAAC,IAAI,CAAC;YACR,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,IAAI,EAAE,4BAAQ,CAAC,GAAG;SACnB,CAAC,CAAC;IACL,CAAC;CACF;AA7HD,wBA6HC;AAED,uDAA8C;AAArC,8GAAA,SAAS,OAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FullConfig } from "@playwright/test";
|
|
2
2
|
import { Reporter, Suite, TestCase, TestResult, TestStep } from "@playwright/test/reporter";
|
|
3
3
|
declare type AllureReporterOptions = {
|
|
4
|
+
detail?: boolean;
|
|
4
5
|
outputFolder?: string;
|
|
6
|
+
suiteTitle?: boolean;
|
|
5
7
|
};
|
|
6
8
|
declare class AllureReporter implements Reporter {
|
|
7
9
|
config: FullConfig;
|
|
@@ -13,6 +15,7 @@ declare class AllureReporter implements Reporter {
|
|
|
13
15
|
private allureGroupCache;
|
|
14
16
|
private allureTestCache;
|
|
15
17
|
private allureStepCache;
|
|
18
|
+
private hostname;
|
|
16
19
|
constructor(options?: AllureReporterOptions);
|
|
17
20
|
onBegin(config: FullConfig, suite: Suite): void;
|
|
18
21
|
onTestBegin(test: TestCase): void;
|
package/dist/index.js
CHANGED
|
@@ -14,17 +14,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
const fs_1 = __importDefault(require("fs"));
|
|
17
|
+
const os_1 = __importDefault(require("os"));
|
|
17
18
|
const path_1 = __importDefault(require("path"));
|
|
19
|
+
const process_1 = __importDefault(require("process"));
|
|
18
20
|
const allure_js_commons_1 = require("allure-js-commons");
|
|
19
21
|
const helpers_1 = require("./helpers");
|
|
20
22
|
class AllureReporter {
|
|
21
|
-
constructor(options = {}) {
|
|
22
|
-
this.allureWriter =
|
|
23
|
+
constructor(options = { suiteTitle: true, detail: true }) {
|
|
24
|
+
this.allureWriter = process_1.default.env.PW_ALLURE_POST_PROCESSOR_FOR_TEST
|
|
23
25
|
? new allure_js_commons_1.InMemoryAllureWriter()
|
|
24
26
|
: undefined;
|
|
25
27
|
this.allureGroupCache = new Map();
|
|
26
28
|
this.allureTestCache = new Map();
|
|
27
29
|
this.allureStepCache = new Map();
|
|
30
|
+
this.hostname = process_1.default.env.ALLURE_HOST_NAME || os_1.default.hostname();
|
|
28
31
|
this.options = options;
|
|
29
32
|
}
|
|
30
33
|
onBegin(config, suite) {
|
|
@@ -46,7 +49,7 @@ class AllureReporter {
|
|
|
46
49
|
if (projectSuiteTitle) {
|
|
47
50
|
allureTest.addLabel(allure_js_commons_1.LabelName.PARENT_SUITE, projectSuiteTitle);
|
|
48
51
|
}
|
|
49
|
-
if (fileSuiteTitle) {
|
|
52
|
+
if (this.options.suiteTitle && fileSuiteTitle) {
|
|
50
53
|
allureTest.addLabel(allure_js_commons_1.LabelName.SUITE, fileSuiteTitle);
|
|
51
54
|
}
|
|
52
55
|
if (suiteTitles.length > 0) {
|
|
@@ -61,6 +64,9 @@ class AllureReporter {
|
|
|
61
64
|
if (!allureTest) {
|
|
62
65
|
return;
|
|
63
66
|
}
|
|
67
|
+
if (!this.options.detail && step.category !== "test.step") {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
64
70
|
this.ensureAllureStepCreated(step, allureTest);
|
|
65
71
|
}
|
|
66
72
|
onStepEnd(_test, _result, step) {
|
|
@@ -68,16 +74,23 @@ class AllureReporter {
|
|
|
68
74
|
if (!allureStep) {
|
|
69
75
|
return;
|
|
70
76
|
}
|
|
77
|
+
if (!this.options.detail && step.category !== "test.step") {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
71
80
|
allureStep.endStep();
|
|
72
81
|
allureStep.status = step.error ? allure_js_commons_1.Status.FAILED : allure_js_commons_1.Status.PASSED;
|
|
73
82
|
}
|
|
74
83
|
onTestEnd(test, result) {
|
|
75
|
-
var _a, _b;
|
|
84
|
+
var _a, _b, _c;
|
|
76
85
|
const runtime = this.getAllureRuntime();
|
|
77
86
|
const allureTest = this.allureTestCache.get(test);
|
|
78
87
|
if (!allureTest) {
|
|
79
88
|
return;
|
|
80
89
|
}
|
|
90
|
+
const thread = process_1.default.env.ALLURE_THREAD_NAME ||
|
|
91
|
+
`${this.hostname}-${process_1.default.pid}-playwright-worker-${result.workerIndex}`;
|
|
92
|
+
allureTest.addLabel(allure_js_commons_1.LabelName.HOST, this.hostname);
|
|
93
|
+
allureTest.addLabel(allure_js_commons_1.LabelName.THREAD, thread);
|
|
81
94
|
allureTest.status = statusToAllureStats(result.status, test.expectedStatus);
|
|
82
95
|
if (result.error) {
|
|
83
96
|
const message = result.error.message && stripAscii(result.error.message);
|
|
@@ -101,6 +114,10 @@ class AllureReporter {
|
|
|
101
114
|
const metadata = JSON.parse(attachment.body.toString());
|
|
102
115
|
(_a = metadata.links) === null || _a === void 0 ? void 0 : _a.forEach((val) => allureTest.addLink(val.url, val.name, val.type));
|
|
103
116
|
(_b = metadata.labels) === null || _b === void 0 ? void 0 : _b.forEach((val) => allureTest.addLabel(val.name, val.value));
|
|
117
|
+
(_c = metadata.parameter) === null || _c === void 0 ? void 0 : _c.forEach((val) => allureTest.addParameter(val.name, val.value, {
|
|
118
|
+
hidden: val.hidden,
|
|
119
|
+
excluded: val.excluded,
|
|
120
|
+
}));
|
|
104
121
|
if (metadata.description) {
|
|
105
122
|
allureTest.description = metadata.description;
|
|
106
123
|
}
|
|
@@ -116,8 +133,19 @@ class AllureReporter {
|
|
|
116
133
|
}
|
|
117
134
|
fileName = runtime.writeAttachmentFromPath(attachment.path, attachment.contentType);
|
|
118
135
|
}
|
|
119
|
-
|
|
120
|
-
|
|
136
|
+
if (attachment.name.endsWith("-expected.png")) {
|
|
137
|
+
allureTest.addAttachment("expected", attachment.contentType, fileName);
|
|
138
|
+
}
|
|
139
|
+
else if (attachment.name.endsWith("-actual.png")) {
|
|
140
|
+
allureTest.addAttachment("actual", attachment.contentType, fileName);
|
|
141
|
+
}
|
|
142
|
+
else if (attachment.name.endsWith("-diff.png")) {
|
|
143
|
+
allureTest.addAttachment("diff", attachment.contentType, fileName);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
allureTest.addAttachment(attachment.name, attachment.contentType, fileName);
|
|
147
|
+
}
|
|
148
|
+
if (attachment.name === "diff" || attachment.name.endsWith("-diff.png")) {
|
|
121
149
|
allureTest.addLabel("testType", "screenshotDiff");
|
|
122
150
|
}
|
|
123
151
|
}
|
|
@@ -133,11 +161,11 @@ class AllureReporter {
|
|
|
133
161
|
for (const group of this.allureGroupCache.values()) {
|
|
134
162
|
group.endGroup();
|
|
135
163
|
}
|
|
136
|
-
if (
|
|
164
|
+
if (process_1.default.env.PW_ALLURE_POST_PROCESSOR_FOR_TEST) {
|
|
137
165
|
try {
|
|
138
166
|
const writer = this.allureWriter;
|
|
139
167
|
void writer;
|
|
140
|
-
const postProcess = eval(
|
|
168
|
+
const postProcess = eval(process_1.default.env.PW_ALLURE_POST_PROCESSOR_FOR_TEST);
|
|
141
169
|
console.log(JSON.stringify(postProcess(this.allureWriter)));
|
|
142
170
|
}
|
|
143
171
|
catch (e) {
|
|
@@ -200,8 +228,8 @@ const appendStep = (parent, step) => {
|
|
|
200
228
|
}
|
|
201
229
|
};
|
|
202
230
|
const allureReportFolder = (outputFolder) => {
|
|
203
|
-
if (
|
|
204
|
-
return path_1.default.resolve(
|
|
231
|
+
if (process_1.default.env.ALLURE_RESULTS_DIR) {
|
|
232
|
+
return path_1.default.resolve(process_1.default.cwd(), process_1.default.env.ALLURE_RESULTS_DIR);
|
|
205
233
|
}
|
|
206
234
|
if (outputFolder) {
|
|
207
235
|
return outputFolder;
|
|
@@ -209,7 +237,7 @@ const allureReportFolder = (outputFolder) => {
|
|
|
209
237
|
return defaultReportFolder();
|
|
210
238
|
};
|
|
211
239
|
const defaultReportFolder = () => {
|
|
212
|
-
return path_1.default.resolve(
|
|
240
|
+
return path_1.default.resolve(process_1.default.cwd(), "allure-results");
|
|
213
241
|
};
|
|
214
242
|
__exportStar(require("./helpers"), exports);
|
|
215
243
|
//# 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":";;;;;;;;;;;;;;;AAgBA,4CAAoB;AACpB,gDAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;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C,CAAC;KACpE;IACD,IAAI,YAAY,EAAE;QAChB,OAAO,YAAY,CAAC;KACrB;IACD,OAAO,mBAAmB,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,GAAW,EAAE;IACvC,OAAO,cAAI,CAAC,OAAO,CAAC,iBAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,4CAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure-playwright",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"description": "Allure Playwright integration",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"lint:fix": "eslint ./src --ext .ts --fix"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@playwright/test": "^1.
|
|
26
|
+
"@playwright/test": "^1.22.2",
|
|
27
27
|
"eslint": "^7.32.0",
|
|
28
28
|
"prettier": "^2.3.2",
|
|
29
29
|
"rimraf": "^3.0.2",
|
|
30
30
|
"typescript": "^4.4.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"allure-js-commons": "2.0.0-beta.
|
|
33
|
+
"allure-js-commons": "2.0.0-beta.19"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|