@qavajs/format-report-portal 1.1.0 → 1.2.1

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
@@ -14,71 +14,77 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
14
14
 
15
15
  :microscope: - experimental
16
16
 
17
- ## 1.1.0
17
+ ## [1.2.1]
18
18
  - :rocket: updated report portal client
19
19
 
20
- ## 1.0.0
20
+ ## [1.2.0]
21
+ - :x: removed `showLaunchURL` flag in favor of built-in report portal client capability
22
+
23
+ ## [1.1.0]
24
+ - :rocket: updated report portal client
25
+
26
+ ## [1.0.0]
21
27
  - added `legacyTimeFormat` flag to support old versions of report portal
22
28
 
23
- ## 0.15.0
29
+ ## [0.15.0]
24
30
  - added request/response renderer of internal mime type _text/x.response.json_
25
31
 
26
- ## 0.14.3
32
+ ## [0.14.3]
27
33
  - bump dependencies to get rid of vulnerabilities
28
34
 
29
- ## 0.14.2
35
+ ## [0.14.2]
30
36
  - fixed issue with undefined/null tags that prevents starting launch
31
37
 
32
- ## 0.14.1
38
+ ## [0.14.1]
33
39
  - updated rp-client package
34
40
 
35
- ## 0.14.0
41
+ ## [0.14.0]
36
42
  - added config parameter for placing tags to attributes or description (default)
37
43
  - pull request template added to reduce human factor
38
44
 
39
- ## 0.13.1
45
+ ## [0.13.1]
40
46
  - fixed a missed bracket
41
47
 
42
- ## 0.13.0
48
+ ## [0.13.0]
43
49
  - changed an approach to distribute tags as attributes for suite and test entities
44
50
 
45
- ## 0.12.0
51
+ ## [0.12.0]
46
52
  - added support of named attachments
47
53
 
48
- ## 0.11.0
54
+ ## [0.11.0]
49
55
  - added flag to print launch url
50
56
 
51
- ## 0.10.0
57
+ ## [0.10.0]
52
58
  - added support of named hooks
53
59
  - added retries
54
60
 
55
- ## 0.9.4
61
+ ## [0.9.4]
56
62
  - fixed bug with finishing launch before all data sent
57
63
 
58
- ## 0.9.3
64
+ ## [0.9.3]
59
65
  - updated rp client version
60
66
 
61
- ## 0.9.2
67
+ ## [0.9.2]
62
68
  - :beetle: added capability to ignore errors
63
69
 
64
- ## 0.9.1
70
+ ## [0.9.1]
65
71
  - :beetle: added request retry in case of error
66
72
 
67
- ## 0.9.0
73
+ ## [0.9.0]
68
74
  - :rocket: implemented capability to add attributes to test
69
75
 
70
- ## 0.0.8
76
+ ## [0.0.8]
71
77
  - :beetle: fixed sending duration
72
78
 
73
- ## 0.0.7
79
+ ## [0.0.7]
74
80
  - :beetle: implemented sending real step duration
75
81
 
76
- ## 0.0.6
82
+ ## [0.0.6]
77
83
  - :rocket: enable support of cucumber logs
78
84
 
79
- ## 0.0.5
85
+ ## [0.0.5]
80
86
  - :rocket: updated step logging as nested steps instead plain logs
81
87
  - :beetle: added capability to attach multiple attachment to step
82
88
 
83
- ## 0.0.4
89
+ ## [0.0.4]
84
90
  - :beetle: fixed issue with sending text plain
package/README.MD CHANGED
@@ -27,7 +27,6 @@ export default {
27
27
  mode: 'DEFAULT',
28
28
  retry: 1, // number of retries to send result to report portal (default - 1)
29
29
  ignoreErrors: false, // ignore RP errors (default: false)
30
- showLaunchURL: true, // log report portal launch link,
31
30
  tagsAsAttributes: true, // (default: false - tags go to description)
32
31
  legacyTimeFormat: true // (default: false - use legacy milliseconds precision instead of microseconds)
33
32
  },
package/index.js CHANGED
@@ -30,15 +30,15 @@ class RPFormatter extends Formatter {
30
30
  if (envelope.testRunStarted) {
31
31
  const startLaunch = this.startLaunch();
32
32
  this.promiseQ.push(startLaunch);
33
- await startLaunch;
33
+ return await startLaunch;
34
34
  }
35
- else if (envelope.testCaseFinished) {
35
+ if (envelope.testCaseFinished) {
36
36
  const finishTest = this.finishTest(envelope)
37
37
  this.promiseQ.push(finishTest);
38
- await finishTest;
38
+ return await finishTest;
39
39
  }
40
- else if (envelope.testRunFinished) {
41
- await this.finishLaunch();
40
+ if (envelope.testRunFinished) {
41
+ return await this.finishLaunch();
42
42
  }
43
43
  } catch (err) {
44
44
  if (this.rpConfig.ignoreErrors) {
@@ -77,8 +77,6 @@ class RPFormatter extends Formatter {
77
77
  const launch = await this.rpClient.finishLaunch(this.launchId, {
78
78
  endTime: this.rpClient.helpers.now()
79
79
  }).promise;
80
-
81
- if (this.rpConfig.showLaunchURL) console.log(`RP launch link: ${launch.link}`);
82
80
  }
83
81
 
84
82
  async finishTest(envelope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/format-report-portal",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,24 @@
21
21
  },
22
22
  "homepage": "https://github.com/qavajs/format-report-portal#readme",
23
23
  "dependencies": {
24
- "@reportportal/client-javascript": "^5.4.1"
24
+ "@reportportal/client-javascript": "^5.5.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@cucumber/cucumber": "^12.2.0",
28
- "@qavajs/core": "^2.7.0",
29
- "@qavajs/memory": "^1.10.2",
30
- "jest": "^30.1.3"
31
- }
28
+ "@qavajs/core": "^2.11.0",
29
+ "@qavajs/memory": "^1.10.3",
30
+ "jest": "^30.2.0"
31
+ },
32
+ "keywords": [
33
+ "reportportal",
34
+ "rp",
35
+ "cucumber",
36
+ "cucumber-reporter",
37
+ "reporter",
38
+ "cucumber-js",
39
+ "qavajs",
40
+ "test-automation",
41
+ "automation",
42
+ "testing"
43
+ ]
32
44
  }