allure-cucumberjs 2.15.1 → 3.0.0-beta.10
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 +123 -129
- package/dist/cjs/index.js +46 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/legacy.js +121 -0
- package/dist/cjs/legacy.js.map +1 -0
- package/dist/cjs/model.js +8 -0
- package/dist/cjs/model.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/reporter.js +458 -0
- package/dist/cjs/reporter.js.map +1 -0
- package/dist/cjs/runtime.js +21 -0
- package/dist/cjs/runtime.js.map +1 -0
- package/dist/esm/index.js +31 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/legacy.js +113 -0
- package/dist/esm/legacy.js.map +1 -0
- package/dist/esm/model.js +2 -0
- package/dist/esm/model.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/reporter.js +449 -0
- package/dist/esm/reporter.js.map +1 -0
- package/dist/esm/runtime.js +14 -0
- package/dist/esm/runtime.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/legacy.d.ts +128 -0
- package/dist/types/model.d.ts +14 -0
- package/dist/types/reporter.d.ts +38 -0
- package/dist/types/runtime.d.ts +5 -0
- package/package.json +57 -41
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -14
- package/dist/index.js.map +0 -1
- package/dist/src/CucumberAllureWorld.d.ts +0 -25
- package/dist/src/CucumberAllureWorld.js +0 -103
- package/dist/src/CucumberAllureWorld.js.map +0 -1
- package/dist/src/CucumberJSAllureReporter.d.ts +0 -59
- package/dist/src/CucumberJSAllureReporter.js +0 -396
- package/dist/src/CucumberJSAllureReporter.js.map +0 -1
package/README.md
CHANGED
|
@@ -12,70 +12,29 @@
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Installation
|
|
16
16
|
|
|
17
17
|
Install the required packages using your favorite package manager:
|
|
18
18
|
|
|
19
19
|
```shell
|
|
20
|
-
|
|
21
|
-
npm install --save-dev allure-js-commons allure-cucumberjs
|
|
22
|
-
# using yarn
|
|
23
|
-
yarn add -D allure-js-commons allure-cucumberjs
|
|
24
|
-
# using pnpm
|
|
25
|
-
pnpm add -D allure-js-commons allure-cucumberjs
|
|
20
|
+
npm add -D allure-cucumberjs
|
|
26
21
|
```
|
|
27
22
|
|
|
28
|
-
Create
|
|
23
|
+
Create `reporter.js` with following content:
|
|
29
24
|
|
|
30
25
|
```js
|
|
31
26
|
// reporter.js
|
|
32
|
-
|
|
33
|
-
import { CucumberJSAllureFormatter } from "allure-cucumberjs";
|
|
34
|
-
|
|
35
|
-
export default class extends CucumberJSAllureFormatter {
|
|
36
|
-
constructor(options) {
|
|
37
|
-
super(options, new AllureRuntime({ resultsDir: "./allure-results" }), {
|
|
38
|
-
labels: [
|
|
39
|
-
{
|
|
40
|
-
pattern: [/@feature:(.*)/],
|
|
41
|
-
name: "epic",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
pattern: [/@severity:(.*)/],
|
|
45
|
-
name: "severity",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
links: [
|
|
49
|
-
{
|
|
50
|
-
pattern: [/@issue=(.*)/],
|
|
51
|
-
type: "issue",
|
|
52
|
-
urlTemplate: "http://localhost:8080/issue/%s",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
pattern: [/@tms=(.*)/],
|
|
56
|
-
type: "tms",
|
|
57
|
-
urlTemplate: "http://localhost:8080/tms/%s",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Then let know `cucumber-js` about the reporter via CLI parameter:
|
|
27
|
+
const AllureCucumberReporter = require("allure-cucumberjs/reporter");
|
|
66
28
|
|
|
67
|
-
|
|
68
|
-
cucumber-js --format ./path/to/reporter.js
|
|
29
|
+
export default AllureCucumberReporter;
|
|
69
30
|
```
|
|
70
31
|
|
|
71
|
-
|
|
32
|
+
Then add following lines to the CucumberJS configuration file:
|
|
72
33
|
|
|
73
|
-
```
|
|
34
|
+
```diff
|
|
74
35
|
// config.js
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
format: "./path/to/reporter.js",
|
|
78
|
-
},
|
|
36
|
+
export default {
|
|
37
|
+
+ format: "./path/to/reporter.js",
|
|
79
38
|
};
|
|
80
39
|
```
|
|
81
40
|
|
|
@@ -85,120 +44,150 @@ And then run CLI with `config` parameter:
|
|
|
85
44
|
cucumber-js --config ./config.js
|
|
86
45
|
```
|
|
87
46
|
|
|
88
|
-
|
|
47
|
+
## Reporter options
|
|
89
48
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
49
|
+
Some reporter settings can be set by following options:
|
|
50
|
+
|
|
51
|
+
| Option | Description | Default |
|
|
52
|
+
| ---------- |-------------------------------------------------------------------------------------------------| ------------------ |
|
|
53
|
+
| resultsDir | Path to results folder | `./allure-results` |
|
|
54
|
+
| links | Links templates to make runtime methods calls simpler and process Cucumber tags as Allure links | `undefined` |
|
|
55
|
+
| labels | Labels templates to process Cucumber tags as Allure labels | `undefined` |
|
|
93
56
|
|
|
94
57
|
## Using Allure API
|
|
95
58
|
|
|
96
|
-
|
|
97
|
-
|
|
59
|
+
To start using Allure Runtime API you need to add the following import into your `./feature/support/world.js` file:
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
import "allure-cucumberjs";
|
|
63
|
+
```
|
|
98
64
|
|
|
99
|
-
|
|
65
|
+
Then, you can call Allure Runtime API methods directly in your step definitions:
|
|
100
66
|
|
|
101
67
|
```js
|
|
102
68
|
import { Given } from "@cucumber/cucumber";
|
|
69
|
+
import { label, attachment, step } from "allure-js-commons";
|
|
103
70
|
|
|
104
|
-
Given(/my step/, async
|
|
105
|
-
await
|
|
106
|
-
await
|
|
107
|
-
await
|
|
71
|
+
Given(/my step/, async () => {
|
|
72
|
+
await step("step can have anonymous body function", async () => {
|
|
73
|
+
await label("label_name", "label_value");
|
|
74
|
+
await attachment(JSON.stringify({ foo: "bar " }), "application/json");
|
|
108
75
|
});
|
|
109
76
|
|
|
110
|
-
await
|
|
111
|
-
await
|
|
112
|
-
await
|
|
77
|
+
await step("by the way, body function can be arrow one", async () => {
|
|
78
|
+
await label("label_name", "label_value");
|
|
79
|
+
await attachment(JSON.stringify({ foo: "bar " }), "application/json");
|
|
113
80
|
});
|
|
114
81
|
});
|
|
115
82
|
```
|
|
116
83
|
|
|
117
|
-
|
|
118
|
-
world constructor:
|
|
84
|
+
### Using Allure Cucumber World
|
|
119
85
|
|
|
120
|
-
|
|
121
|
-
- import { Given } from "@cucumber/cucumber"
|
|
122
|
-
+ import { Given, setWorldConstructor } from "@cucumber/cucumber"
|
|
123
|
-
+ import { CucumberAllureWorld } from "allure-cucumberjs"
|
|
124
|
-
|
|
125
|
-
+ setWorldConstructor(CucumberAllureWorld)
|
|
86
|
+
If you prefer to use custom Allure World instead of global Allure API, you can use `AllureCucumberWorld` class:
|
|
126
87
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
await this.attach(JSON.stringify({ foo: "bar "}), "application/json")
|
|
131
|
-
})
|
|
88
|
+
```js
|
|
89
|
+
import { AllureCucumberWorld } from "allure-cucumberjs";
|
|
90
|
+
import { setWorldConstructor } from "@cucumber/cucumber";
|
|
132
91
|
|
|
133
|
-
|
|
134
|
-
await step.label("label_name", "label_value")
|
|
135
|
-
await step.attach(JSON.stringify({ foo: "bar "}), "application/json")
|
|
136
|
-
})
|
|
137
|
-
})
|
|
92
|
+
setWorldConstructor(AllureCucumberWorld);
|
|
138
93
|
```
|
|
139
94
|
|
|
140
|
-
|
|
141
|
-
`CucumberAllureWorld`:
|
|
95
|
+
Then you'll be able to use Allure Runtime API through `this` in your step definition files:
|
|
142
96
|
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
97
|
+
```js
|
|
98
|
+
import { Given } from "@cucumber/cucumber";
|
|
99
|
+
|
|
100
|
+
Given(/my step/, async function() {
|
|
101
|
+
const self = this;
|
|
102
|
+
|
|
103
|
+
await self.step("step can have anonymous body function", async function() {
|
|
104
|
+
await self.label("label_name", "label_value");
|
|
105
|
+
await self.attachment(JSON.stringify({ foo: "bar " }), "application/json");
|
|
106
|
+
});
|
|
147
107
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
108
|
+
await self.step("by the way, body function can be arrow one", async function() {
|
|
109
|
+
await self.label("label_name", "label_value");
|
|
110
|
+
await self.attachment(JSON.stringify({ foo: "bar " }), "application/json");
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
```
|
|
153
114
|
|
|
154
|
-
|
|
115
|
+
If you run your Cucumber features using single thread mode, `AllureCucumberWorld` is set automatically.
|
|
155
116
|
|
|
156
|
-
|
|
157
|
-
+ this.hello()
|
|
117
|
+
### Links usage
|
|
158
118
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})
|
|
119
|
+
```js
|
|
120
|
+
const { Given } = require("@cucumber/cucumber");
|
|
121
|
+
import { link, issue, tms } from "allure-js-commons";
|
|
163
122
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
})
|
|
123
|
+
Given("step name", async () => {
|
|
124
|
+
await link("link_type", "https://allurereport.org", "Allure Report");
|
|
125
|
+
await issue("Issue Name", "https://github.com/allure-framework/allure-js/issues/352");
|
|
126
|
+
await tms("Task Name", "https://github.com/allure-framework/allure-js/tasks/352");
|
|
127
|
+
});
|
|
169
128
|
```
|
|
170
129
|
|
|
171
|
-
|
|
130
|
+
You can also configure links formatters to make usage much more convenient. `%s`
|
|
131
|
+
in `urlTemplate` parameter will be replaced by given value.
|
|
172
132
|
|
|
173
|
-
|
|
133
|
+
```diff
|
|
134
|
+
// config.js
|
|
135
|
+
export default {
|
|
136
|
+
format: "./path/to/reporter.js",
|
|
137
|
+
+ formatOptions: {
|
|
138
|
+
+ links: [
|
|
139
|
+
+ {
|
|
140
|
+
+ pattern: [/@issue=(.*)/],
|
|
141
|
+
+ type: "issue",
|
|
142
|
+
+ urlTemplate: "https://example.com/issues/%s",
|
|
143
|
+
+ nameTemplate: "Issue: %s",
|
|
144
|
+
+ },
|
|
145
|
+
+ {
|
|
146
|
+
+ pattern: [/@tms=(.*)/],
|
|
147
|
+
+ type: "tms",
|
|
148
|
+
+ urlTemplate: "https://example.com/tasks/%s",
|
|
149
|
+
+ },
|
|
150
|
+
+ ],
|
|
151
|
+
+ }
|
|
152
|
+
};
|
|
153
|
+
```
|
|
174
154
|
|
|
175
|
-
|
|
176
|
-
import { Given } from "@cucumber/cucumber";
|
|
177
|
-
import { CucumberAllureWorld } from "allure-cucumberjs";
|
|
155
|
+
Then you can assign link using shorter notation:
|
|
178
156
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
157
|
+
```js
|
|
158
|
+
const { Given } = require("@cucumber/cucumber");
|
|
159
|
+
import { link, issue, tms } from "allure-js-commons";
|
|
160
|
+
|
|
161
|
+
Given("step name", async () => {
|
|
162
|
+
await issue("351");
|
|
163
|
+
await issue("352", "Issue Name");
|
|
164
|
+
await tms("351");
|
|
165
|
+
await tms("352", "Task Name");
|
|
166
|
+
await link("custom", "352");
|
|
167
|
+
await link("custom", "352", "Link name");
|
|
168
|
+
});
|
|
169
|
+
```
|
|
182
170
|
|
|
183
|
-
|
|
184
|
-
someCustomOptions: string;
|
|
185
|
-
} & CucumberAllureWorld;
|
|
171
|
+
Links patterns also work with Cucumber tags which match `pattern` parameter:
|
|
186
172
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
173
|
+
```gherkin
|
|
174
|
+
@issue=0
|
|
175
|
+
Feature: links
|
|
176
|
+
|
|
177
|
+
@issue=1 @tms=2
|
|
178
|
+
Scenario: a
|
|
179
|
+
Given a step
|
|
192
180
|
```
|
|
193
181
|
|
|
194
182
|
### Parameters usage
|
|
195
183
|
|
|
196
184
|
```ts
|
|
197
185
|
import { Given } from "@cucumber/cucumber";
|
|
186
|
+
import { step, parameter } from "allure-js-commons";
|
|
198
187
|
|
|
199
|
-
Given(/my step/, async
|
|
200
|
-
await
|
|
201
|
-
await
|
|
188
|
+
Given(/my step/, async () => {
|
|
189
|
+
await step("step can have anonymous body function", async () => {
|
|
190
|
+
await parameter("parameterName", "parameterValue");
|
|
202
191
|
});
|
|
203
192
|
});
|
|
204
193
|
```
|
|
@@ -211,10 +200,11 @@ Also addParameter takes an third optional parameter with the hidden and excluded
|
|
|
211
200
|
|
|
212
201
|
```ts
|
|
213
202
|
import { Given } from "@cucumber/cucumber";
|
|
203
|
+
import { step, parameter } from "allure-js-commons";
|
|
214
204
|
|
|
215
|
-
Given(/my step/, async
|
|
216
|
-
await
|
|
217
|
-
await
|
|
205
|
+
Given(/my step/, async () => {
|
|
206
|
+
await step("step can have anonymous body function", async () => {
|
|
207
|
+
await parameter("parameterName", "parameterValue", { mode: "hidden", excluded: true });
|
|
218
208
|
});
|
|
219
209
|
});
|
|
220
210
|
```
|
|
@@ -224,11 +214,15 @@ Given(/my step/, async function () {
|
|
|
224
214
|
For cross-browser testing simply add a parameter using Allure API with the browser name to the `World` instance inside your scenario, i.e.:
|
|
225
215
|
|
|
226
216
|
```js
|
|
227
|
-
|
|
217
|
+
import { parameter } from "allure-js-commons";
|
|
218
|
+
|
|
219
|
+
await parameter('Browser', 'firefox')
|
|
228
220
|
```
|
|
229
221
|
|
|
230
222
|
For better presentation, you can also group suites by browser names, i.e.:
|
|
231
223
|
|
|
232
224
|
```js
|
|
233
|
-
|
|
225
|
+
import { parentSuite } from "allure-js-commons";
|
|
226
|
+
|
|
227
|
+
await parentSuite('Firefox')
|
|
234
228
|
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AllureCucumberTestRuntime", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _runtime2.AllureCucumberTestRuntime;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AllureCucumberWorld", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _legacy.AllureCucumberWorld;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _cucumber = require("@cucumber/cucumber");
|
|
19
|
+
var _reporter = require("allure-js-commons/sdk/reporter");
|
|
20
|
+
var _runtime = require("allure-js-commons/sdk/runtime");
|
|
21
|
+
var _legacy = require("./legacy.js");
|
|
22
|
+
var _runtime2 = require("./runtime.js");
|
|
23
|
+
(0, _cucumber.BeforeAll)(() => {
|
|
24
|
+
(0, _runtime.setGlobalTestRuntime)(new _runtime2.AllureCucumberTestRuntime());
|
|
25
|
+
});
|
|
26
|
+
(0, _cucumber.Before)({
|
|
27
|
+
name: "ALLURE_FIXTURE_IGNORE"
|
|
28
|
+
}, scenario => {
|
|
29
|
+
var testPlan = (0, _reporter.parseTestPlan)();
|
|
30
|
+
if (!testPlan) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
var pickle = scenario.pickle;
|
|
34
|
+
var fullName = "".concat(pickle.uri, "#").concat(pickle.name);
|
|
35
|
+
var tags = pickle.tags.map(tag => tag.name);
|
|
36
|
+
if (!(0, _reporter.includedInTestPlan)(testPlan, {
|
|
37
|
+
fullName,
|
|
38
|
+
tags
|
|
39
|
+
})) {
|
|
40
|
+
// we can't use regular message or Allure facade since we need label to be added
|
|
41
|
+
// to test, not fixture
|
|
42
|
+
_cucumber.world.attach(Buffer.from("allure-skip"), "application/vnd.allure.skipcucumber+json");
|
|
43
|
+
return "skipped";
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_cucumber","require","_reporter","_runtime","_legacy","_runtime2","BeforeAll","setGlobalTestRuntime","AllureCucumberTestRuntime","Before","name","scenario","testPlan","parseTestPlan","pickle","fullName","concat","uri","tags","map","tag","includedInTestPlan","world","attach","Buffer","from"],"sources":["../../src/index.ts"],"sourcesContent":["import { Before, BeforeAll, world } from \"@cucumber/cucumber\";\nimport { includedInTestPlan } from \"allure-js-commons/sdk/reporter\";\nimport { parseTestPlan } from \"allure-js-commons/sdk/reporter\";\nimport { setGlobalTestRuntime } from \"allure-js-commons/sdk/runtime\";\nimport { AllureCucumberWorld } from \"./legacy.js\";\nimport { AllureCucumberTestRuntime } from \"./runtime.js\";\n\nBeforeAll(() => {\n setGlobalTestRuntime(new AllureCucumberTestRuntime());\n});\n\nBefore({ name: \"ALLURE_FIXTURE_IGNORE\" }, (scenario) => {\n const testPlan = parseTestPlan();\n if (!testPlan) {\n return;\n }\n const pickle = scenario.pickle;\n const fullName = `${pickle.uri}#${pickle.name}`;\n const tags = pickle.tags.map((tag) => tag.name);\n\n if (!includedInTestPlan(testPlan, { fullName, tags })) {\n // we can't use regular message or Allure facade since we need label to be added\n // to test, not fixture\n world.attach(Buffer.from(\"allure-skip\"), \"application/vnd.allure.skipcucumber+json\");\n return \"skipped\";\n }\n});\n\nexport { AllureCucumberTestRuntime, AllureCucumberWorld };\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,mBAAS,EAAC,MAAM;EACd,IAAAC,6BAAoB,EAAC,IAAIC,mCAAyB,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,IAAAC,gBAAM,EAAC;EAAEC,IAAI,EAAE;AAAwB,CAAC,EAAGC,QAAQ,IAAK;EACtD,IAAMC,QAAQ,GAAG,IAAAC,uBAAa,EAAC,CAAC;EAChC,IAAI,CAACD,QAAQ,EAAE;IACb;EACF;EACA,IAAME,MAAM,GAAGH,QAAQ,CAACG,MAAM;EAC9B,IAAMC,QAAQ,MAAAC,MAAA,CAAMF,MAAM,CAACG,GAAG,OAAAD,MAAA,CAAIF,MAAM,CAACJ,IAAI,CAAE;EAC/C,IAAMQ,IAAI,GAAGJ,MAAM,CAACI,IAAI,CAACC,GAAG,CAAEC,GAAG,IAAKA,GAAG,CAACV,IAAI,CAAC;EAE/C,IAAI,CAAC,IAAAW,4BAAkB,EAACT,QAAQ,EAAE;IAAEG,QAAQ;IAAEG;EAAK,CAAC,CAAC,EAAE;IACrD;IACA;IACAI,eAAK,CAACC,MAAM,CAACC,MAAM,CAACC,IAAI,CAAC,aAAa,CAAC,EAAE,0CAA0C,CAAC;IACpF,OAAO,SAAS;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AllureCucumberWorld = void 0;
|
|
7
|
+
var _cucumber = require("@cucumber/cucumber");
|
|
8
|
+
var allure = _interopRequireWildcard(require("allure-js-commons"));
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated please use api exported by "allure-js-commons" instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated please use api exported by "allure-js-commons" instead.
|
|
20
|
+
*/
|
|
21
|
+
class AllureCucumberWorld extends _cucumber.World {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated please use import { label } from "allure-js-commons" instead.
|
|
26
|
+
*/
|
|
27
|
+
_defineProperty(this, "label", (name, value) => Promise.resolve(allure.label(name, value)));
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated please use import { link } from "allure-js-commons" instead.
|
|
30
|
+
*/
|
|
31
|
+
_defineProperty(this, "link", (type, url, name) => Promise.resolve(allure.link(url, name, type)));
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated please use import { parameter } from "allure-js-commons" instead.
|
|
34
|
+
*/
|
|
35
|
+
_defineProperty(this, "parameter", (name, value, options) => Promise.resolve(allure.parameter(name, value, options)));
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated please use import { description } from "allure-js-commons" instead.
|
|
38
|
+
*/
|
|
39
|
+
_defineProperty(this, "description", value => Promise.resolve(allure.description(value)));
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated please use import { descriptionHtml } from "allure-js-commons" instead.
|
|
42
|
+
*/
|
|
43
|
+
_defineProperty(this, "descriptionHtml", html => Promise.resolve(allure.descriptionHtml(html)));
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated please use import { testCaseId } from "allure-js-commons" instead.
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "testCaseId", id => Promise.resolve(allure.testCaseId(id)));
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated please use import { historyId } from "allure-js-commons" instead.
|
|
50
|
+
*/
|
|
51
|
+
_defineProperty(this, "historyId", id => Promise.resolve(allure.historyId(id)));
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated please use import { allureId } from "allure-js-commons" instead.
|
|
54
|
+
*/
|
|
55
|
+
_defineProperty(this, "allureId", id => Promise.resolve(allure.allureId(id)));
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated please use import { displayName } from "allure-js-commons" instead.
|
|
58
|
+
*/
|
|
59
|
+
_defineProperty(this, "displayName", name => Promise.resolve(allure.displayName(name)));
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated please use import { attachment } from "allure-js-commons" instead.
|
|
62
|
+
*/
|
|
63
|
+
_defineProperty(this, "attachment", (name, content, type) => Promise.resolve(allure.attachment(name, content, {
|
|
64
|
+
contentType: type
|
|
65
|
+
})));
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated please use import { issue } from "allure-js-commons" instead.
|
|
68
|
+
*/
|
|
69
|
+
_defineProperty(this, "issue", (name, url) => Promise.resolve(allure.issue(url, name)));
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated please use import { tms } from "allure-js-commons" instead.
|
|
72
|
+
*/
|
|
73
|
+
_defineProperty(this, "tms", (name, url) => Promise.resolve(allure.tms(url, name)));
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated please use import { epic } from "allure-js-commons" instead.
|
|
76
|
+
*/
|
|
77
|
+
_defineProperty(this, "epic", name => Promise.resolve(allure.epic(name)));
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated please use import { feature } from "allure-js-commons" instead.
|
|
80
|
+
*/
|
|
81
|
+
_defineProperty(this, "feature", name => Promise.resolve(allure.feature(name)));
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated please use import { story } from "allure-js-commons" instead.
|
|
84
|
+
*/
|
|
85
|
+
_defineProperty(this, "story", name => Promise.resolve(allure.story(name)));
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated please use import { suite } from "allure-js-commons" instead.
|
|
88
|
+
*/
|
|
89
|
+
_defineProperty(this, "suite", name => Promise.resolve(allure.suite(name)));
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated please use import { parentSuite } from "allure-js-commons" instead.
|
|
92
|
+
*/
|
|
93
|
+
_defineProperty(this, "parentSuite", name => Promise.resolve(allure.parentSuite(name)));
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated please use import { subSuite } from "allure-js-commons" instead.
|
|
96
|
+
*/
|
|
97
|
+
_defineProperty(this, "subSuite", name => Promise.resolve(allure.subSuite(name)));
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated please use import { owner } from "allure-js-commons" instead.
|
|
100
|
+
*/
|
|
101
|
+
_defineProperty(this, "owner", name => Promise.resolve(allure.owner(name)));
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated please use import { severity } from "allure-js-commons" instead.
|
|
104
|
+
*/
|
|
105
|
+
_defineProperty(this, "severity", name => Promise.resolve(allure.severity(name)));
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated please use import { layer } from "allure-js-commons" instead.
|
|
108
|
+
*/
|
|
109
|
+
_defineProperty(this, "layer", name => Promise.resolve(allure.layer(name)));
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated please use import { tag } from "allure-js-commons" instead.
|
|
112
|
+
*/
|
|
113
|
+
_defineProperty(this, "tag", name => Promise.resolve(allure.tag(name)));
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated please use import { step } from "allure-js-commons" instead.
|
|
116
|
+
*/
|
|
117
|
+
_defineProperty(this, "step", (name, body) => Promise.resolve(allure.step(name, body)));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.AllureCucumberWorld = AllureCucumberWorld;
|
|
121
|
+
//# sourceMappingURL=legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy.js","names":["_cucumber","require","allure","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","AllureCucumberWorld","World","constructor","arguments","name","Promise","resolve","label","type","url","link","options","parameter","description","html","descriptionHtml","id","testCaseId","historyId","allureId","displayName","content","attachment","contentType","issue","tms","epic","feature","story","suite","parentSuite","subSuite","owner","severity","layer","tag","body","step","exports"],"sources":["../../src/legacy.ts"],"sourcesContent":["import { World } from \"@cucumber/cucumber\";\nimport * as allure from \"allure-js-commons\";\nimport type { ParameterOptions } from \"allure-js-commons\";\n\n/**\n * @deprecated please use api exported by \"allure-js-commons\" instead.\n */\nexport interface AllureCucumberLegacyApi {\n label: (name: string, value: string) => Promise<void>;\n link: (type: string, url: string, name?: string) => Promise<void>;\n parameter: (name: string, value: string, options?: ParameterOptions) => Promise<void>;\n description: (markdown: string) => Promise<void>;\n descriptionHtml: (html: string) => Promise<void>;\n testCaseId: (id: string) => Promise<void>;\n historyId: (id: string) => Promise<void>;\n allureId: (id: string) => Promise<void>;\n displayName: (name: string) => Promise<void>;\n attachment: (name: string, content: Buffer | string, type: string) => Promise<void>;\n issue: (name: string, url: string) => Promise<void>;\n tms: (name: string, url: string) => Promise<void>;\n epic: (name: string) => Promise<void>;\n feature: (name: string) => Promise<void>;\n story: (name: string) => Promise<void>;\n suite: (name: string) => Promise<void>;\n parentSuite: (name: string) => Promise<void>;\n subSuite: (name: string) => Promise<void>;\n owner: (name: string) => Promise<void>;\n severity: (name: string) => Promise<void>;\n layer: (name: string) => Promise<void>;\n tag: (name: string) => Promise<void>;\n step: (name: string, body: () => Promise<void>) => Promise<void>;\n}\n\n/**\n * @deprecated please use api exported by \"allure-js-commons\" instead.\n */\nexport class AllureCucumberWorld extends World implements AllureCucumberLegacyApi {\n /**\n * @deprecated please use import { label } from \"allure-js-commons\" instead.\n */\n label = (name: string, value: string) => Promise.resolve(allure.label(name, value));\n /**\n * @deprecated please use import { link } from \"allure-js-commons\" instead.\n */\n link = (type: string, url: string, name?: string) => Promise.resolve(allure.link(url, name, type));\n /**\n * @deprecated please use import { parameter } from \"allure-js-commons\" instead.\n */\n parameter = (name: string, value: string, options?: ParameterOptions) =>\n Promise.resolve(allure.parameter(name, value, options));\n /**\n * @deprecated please use import { description } from \"allure-js-commons\" instead.\n */\n description = (value: string) => Promise.resolve(allure.description(value));\n /**\n * @deprecated please use import { descriptionHtml } from \"allure-js-commons\" instead.\n */\n descriptionHtml = (html: string) => Promise.resolve(allure.descriptionHtml(html));\n /**\n * @deprecated please use import { testCaseId } from \"allure-js-commons\" instead.\n */\n testCaseId = (id: string) => Promise.resolve(allure.testCaseId(id));\n /**\n * @deprecated please use import { historyId } from \"allure-js-commons\" instead.\n */\n historyId = (id: string) => Promise.resolve(allure.historyId(id));\n /**\n * @deprecated please use import { allureId } from \"allure-js-commons\" instead.\n */\n allureId = (id: string) => Promise.resolve(allure.allureId(id));\n /**\n * @deprecated please use import { displayName } from \"allure-js-commons\" instead.\n */\n displayName = (name: string) => Promise.resolve(allure.displayName(name));\n /**\n * @deprecated please use import { attachment } from \"allure-js-commons\" instead.\n */\n attachment = (name: string, content: Buffer | string, type: string) =>\n Promise.resolve(allure.attachment(name, content, { contentType: type }));\n /**\n * @deprecated please use import { issue } from \"allure-js-commons\" instead.\n */\n issue = (name: string, url: string) => Promise.resolve(allure.issue(url, name));\n /**\n * @deprecated please use import { tms } from \"allure-js-commons\" instead.\n */\n tms = (name: string, url: string) => Promise.resolve(allure.tms(url, name));\n /**\n * @deprecated please use import { epic } from \"allure-js-commons\" instead.\n */\n epic = (name: string) => Promise.resolve(allure.epic(name));\n /**\n * @deprecated please use import { feature } from \"allure-js-commons\" instead.\n */\n feature = (name: string) => Promise.resolve(allure.feature(name));\n /**\n * @deprecated please use import { story } from \"allure-js-commons\" instead.\n */\n story = (name: string) => Promise.resolve(allure.story(name));\n /**\n * @deprecated please use import { suite } from \"allure-js-commons\" instead.\n */\n suite = (name: string) => Promise.resolve(allure.suite(name));\n /**\n * @deprecated please use import { parentSuite } from \"allure-js-commons\" instead.\n */\n parentSuite = (name: string) => Promise.resolve(allure.parentSuite(name));\n /**\n * @deprecated please use import { subSuite } from \"allure-js-commons\" instead.\n */\n subSuite = (name: string) => Promise.resolve(allure.subSuite(name));\n /**\n * @deprecated please use import { owner } from \"allure-js-commons\" instead.\n */\n owner = (name: string) => Promise.resolve(allure.owner(name));\n /**\n * @deprecated please use import { severity } from \"allure-js-commons\" instead.\n */\n severity = (name: string) => Promise.resolve(allure.severity(name));\n /**\n * @deprecated please use import { layer } from \"allure-js-commons\" instead.\n */\n layer = (name: string) => Promise.resolve(allure.layer(name));\n /**\n * @deprecated please use import { tag } from \"allure-js-commons\" instead.\n */\n tag = (name: string) => Promise.resolve(allure.tag(name));\n /**\n * @deprecated please use import { step } from \"allure-js-commons\" instead.\n */\n step = (name: string, body: () => any) => Promise.resolve(allure.step(name, body));\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA4C,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,C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AA;AACpF;AAACE,OAAA,CAAAtC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ALLURE_SETUP_REPORTER_HOOK = void 0;
|
|
7
|
+
var ALLURE_SETUP_REPORTER_HOOK = exports.ALLURE_SETUP_REPORTER_HOOK = "__allure_reporter_setup_hook__";
|
|
8
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","names":["ALLURE_SETUP_REPORTER_HOOK","exports"],"sources":["../../src/model.ts"],"sourcesContent":["import type { LabelName } from \"allure-js-commons\";\nimport type { LinkConfig, LinkTypeOptions, ReporterConfig } from \"allure-js-commons/sdk/reporter\";\n\nexport const ALLURE_SETUP_REPORTER_HOOK = \"__allure_reporter_setup_hook__\";\n\nexport type LabelConfig = {\n pattern: RegExp[];\n name: LabelName | string;\n};\n\nexport type AllureCucumberLinkConfig = LinkConfig<LinkTypeOptions & { pattern: RegExp[] }>;\n\nexport interface AllureCucumberReporterConfig extends Omit<ReporterConfig, \"links\"> {\n links?: AllureCucumberLinkConfig;\n labels?: LabelConfig[];\n}\n"],"mappings":";;;;;;AAGO,IAAMA,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,gCAAgC","ignoreList":[]}
|