@qavajs/format-report-portal 0.12.0 → 0.13.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/CHANGELOG.MD +3 -0
- package/index.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.MD
CHANGED
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;
|
|
@@ -242,6 +243,9 @@ class RPFormatter extends Formatter {
|
|
|
242
243
|
|
|
243
244
|
formatTags(tags) {
|
|
244
245
|
return tags.map(tag => '<code>' + tag.name + '</code>').join('')
|
|
246
|
+
|
|
247
|
+
prepareTags(tags) {
|
|
248
|
+
return tags.map(tag => tag.name)
|
|
245
249
|
}
|
|
246
250
|
|
|
247
251
|
prepareContent(attachment) {
|