@qavajs/format-report-portal 0.15.0 → 1.0.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,6 @@
1
+ ## 1.0.0
2
+ - added `legacyTimeFormat` flag to support old versions of report portal
3
+
1
4
  ## 0.15.0
2
5
  - added request/response renderer of internal mime type _text/x.response.json_
3
6
 
package/README.MD CHANGED
@@ -27,7 +27,8 @@ module.exports = {
27
27
  retry: 1, // number of retries to send result to report portal (default - 1)
28
28
  ignoreErrors: false, // ignore RP errors (default: false)
29
29
  showLaunchURL: true, // log report portal launch link,
30
- tagsAsAttributes: true // (default: false tags go to description)
30
+ tagsAsAttributes: true, // (default: false - tags go to description)
31
+ legacyTimeFormat: true // (default: false - use legacy milliseconds precision instead of microseconds)
31
32
  },
32
33
  }
33
34
  }
package/index.js CHANGED
@@ -17,6 +17,9 @@ class RPFormatter extends Formatter {
17
17
  this.rpClient = new RPClient(this.rpConfig);
18
18
  this.promiseQ = [];
19
19
  this.stepDefinitions = {};
20
+ if (this.rpConfig.legacyTimeFormat) {
21
+ this.rpClient.helpers.now = () => { return Date.now() };
22
+ }
20
23
  }
21
24
 
22
25
  async processEnvelope(envelope) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/format-report-portal",
3
- "version": "0.15.0",
3
+ "version": "1.0.0",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "homepage": "https://github.com/qavajs/format-report-portal#readme",
23
23
  "dependencies": {
24
- "@reportportal/client-javascript": "^5.1.4"
24
+ "@reportportal/client-javascript": "^5.3.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@cucumber/cucumber": "^10.8.0",
28
- "@qavajs/cli": "^0.39.0",
29
- "@qavajs/memory": "^1.7.0",
27
+ "@cucumber/cucumber": "^11.1.0",
28
+ "@qavajs/cli": "^1.0.0",
29
+ "@qavajs/memory": "^1.10.2",
30
30
  "jest": "^29.7.0"
31
31
  }
32
32
  }