cucumberjs-qase-reporter 2.0.4 → 2.0.5
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/changelog.md +12 -0
- package/dist/storage.js +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# qase-cucumberjs@2.0.5
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
Enabled support for multiple IDs in the `QaseID` tag, allowing tests to be linked to multiple cases.
|
|
6
|
+
|
|
7
|
+
```gherkin
|
|
8
|
+
@QaseID=1,2,3
|
|
9
|
+
Scenario: Scenario with new Qase ID tag
|
|
10
|
+
Given I have a step
|
|
11
|
+
```
|
|
12
|
+
|
|
1
13
|
# qase-cucumberjs@2.0.4
|
|
2
14
|
|
|
3
15
|
## What's new
|
package/dist/storage.js
CHANGED
|
@@ -5,7 +5,7 @@ const qase_javascript_commons_1 = require("qase-javascript-commons");
|
|
|
5
5
|
const cucumber_1 = require("@cucumber/cucumber");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const qaseIdRegExp = /^@[Qq]-?(\d+)$/g;
|
|
8
|
-
const newQaseIdRegExp = /^@[Qq]ase[Ii][Dd]=(\d+)$/g;
|
|
8
|
+
const newQaseIdRegExp = /^@[Qq]ase[Ii][Dd]=(\d+(?:,\s*\d+)*)$/g;
|
|
9
9
|
const qaseTitleRegExp = /^@[Qq]ase[Tt]itle=(.+)$/g;
|
|
10
10
|
const qaseFieldsRegExp = /^@[Qq]ase[Ff]ields=(.+)$/g;
|
|
11
11
|
const qaseIgnoreRegExp = /^@[Qq]ase[Ii][Gg][Nn][Oo][Rr][Ee]$/g;
|
|
@@ -271,7 +271,7 @@ class Storage {
|
|
|
271
271
|
continue;
|
|
272
272
|
}
|
|
273
273
|
if (newQaseIdRegExp.test(tag.name)) {
|
|
274
|
-
metadata.ids.push(
|
|
274
|
+
metadata.ids.push(...(tag.name.replace(/^@[Qq]ase[Ii][Dd]=/, '')).split(',').map(Number));
|
|
275
275
|
continue;
|
|
276
276
|
}
|
|
277
277
|
if (qaseTitleRegExp.test(tag.name)) {
|