@qavajs/format-report-portal 0.11.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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.13.0
2
+ - changed an approach to distribute tags as attributes for suite and test entities
3
+
4
+ ## 0.12.0
5
+ - added support of named attachments
6
+
1
7
  ## 0.11.0
2
8
  - added flag to print launch url
3
9
 
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) {
@@ -267,7 +271,7 @@ class RPFormatter extends Formatter {
267
271
  };
268
272
  log = await this.rpClient.sendLog(testItem.tempId, {
269
273
  level: 'INFO',
270
- message: 'Attachment',
274
+ message: attachment.fileName || 'Attachment',
271
275
  time: startTime
272
276
  }, attachmentData);
273
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/format-report-portal",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "@reportportal/client-javascript": "^5.0.13"
24
24
  },
25
25
  "devDependencies": {
26
- "@cucumber/cucumber": "^9.4.0",
26
+ "@cucumber/cucumber": "^9.5.1",
27
27
  "@qavajs/cli": "^0.28.0",
28
28
  "@qavajs/memory": "^1.6.2"
29
29
  }