@qavajs/format-report-portal 1.1.0 → 1.2.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
@@ -14,71 +14,74 @@ 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.0]
18
+ - :x: removed `showLaunchURL` flag in favor of built-in report portal client capability
19
+
20
+ ## [1.1.0]
18
21
  - :rocket: updated report portal client
19
22
 
20
- ## 1.0.0
23
+ ## [1.0.0]
21
24
  - added `legacyTimeFormat` flag to support old versions of report portal
22
25
 
23
- ## 0.15.0
26
+ ## [0.15.0]
24
27
  - added request/response renderer of internal mime type _text/x.response.json_
25
28
 
26
- ## 0.14.3
29
+ ## [0.14.3]
27
30
  - bump dependencies to get rid of vulnerabilities
28
31
 
29
- ## 0.14.2
32
+ ## [0.14.2]
30
33
  - fixed issue with undefined/null tags that prevents starting launch
31
34
 
32
- ## 0.14.1
35
+ ## [0.14.1]
33
36
  - updated rp-client package
34
37
 
35
- ## 0.14.0
38
+ ## [0.14.0]
36
39
  - added config parameter for placing tags to attributes or description (default)
37
40
  - pull request template added to reduce human factor
38
41
 
39
- ## 0.13.1
42
+ ## [0.13.1]
40
43
  - fixed a missed bracket
41
44
 
42
- ## 0.13.0
45
+ ## [0.13.0]
43
46
  - changed an approach to distribute tags as attributes for suite and test entities
44
47
 
45
- ## 0.12.0
48
+ ## [0.12.0]
46
49
  - added support of named attachments
47
50
 
48
- ## 0.11.0
51
+ ## [0.11.0]
49
52
  - added flag to print launch url
50
53
 
51
- ## 0.10.0
54
+ ## [0.10.0]
52
55
  - added support of named hooks
53
56
  - added retries
54
57
 
55
- ## 0.9.4
58
+ ## [0.9.4]
56
59
  - fixed bug with finishing launch before all data sent
57
60
 
58
- ## 0.9.3
61
+ ## [0.9.3]
59
62
  - updated rp client version
60
63
 
61
- ## 0.9.2
64
+ ## [0.9.2]
62
65
  - :beetle: added capability to ignore errors
63
66
 
64
- ## 0.9.1
67
+ ## [0.9.1]
65
68
  - :beetle: added request retry in case of error
66
69
 
67
- ## 0.9.0
70
+ ## [0.9.0]
68
71
  - :rocket: implemented capability to add attributes to test
69
72
 
70
- ## 0.0.8
73
+ ## [0.0.8]
71
74
  - :beetle: fixed sending duration
72
75
 
73
- ## 0.0.7
76
+ ## [0.0.7]
74
77
  - :beetle: implemented sending real step duration
75
78
 
76
- ## 0.0.6
79
+ ## [0.0.6]
77
80
  - :rocket: enable support of cucumber logs
78
81
 
79
- ## 0.0.5
82
+ ## [0.0.5]
80
83
  - :rocket: updated step logging as nested steps instead plain logs
81
84
  - :beetle: added capability to attach multiple attachment to step
82
85
 
83
- ## 0.0.4
86
+ ## [0.0.4]
84
87
  - :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.0",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,5 +28,17 @@
28
28
  "@qavajs/core": "^2.7.0",
29
29
  "@qavajs/memory": "^1.10.2",
30
30
  "jest": "^30.1.3"
31
- }
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
  }