@qavajs/format-report-portal 0.12.0 → 0.13.2
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 +10 -0
- package/index.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.MD
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.13.2
|
|
2
|
+
- updated version to 0.13.2
|
|
3
|
+
- pull request template added to reduce human factor
|
|
4
|
+
|
|
5
|
+
## 0.13.1
|
|
6
|
+
- fixed a missed bracket
|
|
7
|
+
|
|
8
|
+
## 0.13.0
|
|
9
|
+
- changed an approach to distribute tags as attributes for suite and test entities
|
|
10
|
+
|
|
1
11
|
## 0.12.0
|
|
2
12
|
- added support of named attachments
|
|
3
13
|
|
package/index.js
CHANGED
|
@@ -84,6 +84,7 @@ class RPFormatter extends Formatter {
|
|
|
84
84
|
if (!this.features[featureName]) {
|
|
85
85
|
await retry(async () => {
|
|
86
86
|
const featureItem = this.rpClient.startTestItem({
|
|
87
|
+
attributes: this.prepareTags(testCase.gherkinDocument.feature.tags),
|
|
87
88
|
description:
|
|
88
89
|
this.formatTags(testCase.gherkinDocument.feature.tags) +
|
|
89
90
|
'\n' +
|
|
@@ -123,7 +124,7 @@ class RPFormatter extends Formatter {
|
|
|
123
124
|
name: testCase.pickle.name,
|
|
124
125
|
startTime,
|
|
125
126
|
type: 'STEP',
|
|
126
|
-
attributes,
|
|
127
|
+
attributes: [...attributes, ...this.prepareTags(testCase.pickle.tags) ],
|
|
127
128
|
retry: retryTest
|
|
128
129
|
}, this.launchId, featureTempId);
|
|
129
130
|
await testItem.promise;
|
|
@@ -244,6 +245,10 @@ class RPFormatter extends Formatter {
|
|
|
244
245
|
return tags.map(tag => '<code>' + tag.name + '</code>').join('')
|
|
245
246
|
}
|
|
246
247
|
|
|
248
|
+
prepareTags(tags) {
|
|
249
|
+
return tags.map(tag => tag.name)
|
|
250
|
+
}
|
|
251
|
+
|
|
247
252
|
prepareContent(attachment) {
|
|
248
253
|
return ['text/plain', 'application/json'].includes(attachment.mediaType)
|
|
249
254
|
? Buffer.from(attachment.body).toString('base64')
|