@qavajs/format-report-portal 0.10.0 → 0.12.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.12.0
2
+ - added support of named attachments
3
+
4
+ ## 0.11.0
5
+ - added flag to print launch url
6
+
1
7
  ## 0.10.0
2
8
  - added support of named hooks
3
9
  - added retries
package/README.MD CHANGED
@@ -25,7 +25,8 @@ module.exports = {
25
25
  launch: 'your launch name',
26
26
  mode: 'DEFAULT',
27
27
  retry: 1, // number of retries to send result to report portal (default - 1)
28
- ignoreErrors: false // ignore RP errors (default: false)
28
+ ignoreErrors: false, // ignore RP errors (default: false)
29
+ showLaunchURL: true // log report portal launch link
29
30
  },
30
31
  }
31
32
  }
package/index.js CHANGED
@@ -71,9 +71,11 @@ class RPFormatter extends Formatter {
71
71
  for (const featureName in this.features) {
72
72
  await this.rpClient.finishTestItem(this.features[featureName], { status: 'PASSED' }).promise;
73
73
  }
74
- await this.rpClient.finishLaunch(this.launchId, {
74
+ const launch = await this.rpClient.finishLaunch(this.launchId, {
75
75
  endTime: this.rpClient.helpers.now()
76
76
  }).promise;
77
+
78
+ if (this.rpConfig.showLaunchURL) console.log(`RP launch link: ${launch.link}`);
77
79
  }
78
80
 
79
81
  async finishTest(envelope) {
@@ -265,7 +267,7 @@ class RPFormatter extends Formatter {
265
267
  };
266
268
  log = await this.rpClient.sendLog(testItem.tempId, {
267
269
  level: 'INFO',
268
- message: 'Attachment',
270
+ message: attachment.fileName || 'Attachment',
269
271
  time: startTime
270
272
  }, attachmentData);
271
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/format-report-portal",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "homepage": "https://github.com/qavajs/format-report-portal#readme",
22
22
  "dependencies": {
23
- "@reportportal/client-javascript": "^5.0.12"
23
+ "@reportportal/client-javascript": "^5.0.13"
24
24
  },
25
25
  "devDependencies": {
26
- "@cucumber/cucumber": "^9.2.0",
27
- "@qavajs/cli": "^0.26.0",
28
- "@qavajs/memory": "^1.5.1"
26
+ "@cucumber/cucumber": "^9.5.1",
27
+ "@qavajs/cli": "^0.28.0",
28
+ "@qavajs/memory": "^1.6.2"
29
29
  }
30
30
  }