@qavajs/format-report-portal 0.0.1 → 0.0.3

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.
Files changed (3) hide show
  1. package/README.MD +2 -1
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/README.MD CHANGED
@@ -20,7 +20,8 @@ module.exports = {
20
20
  description: 'Description',
21
21
  tags: ['Tag'],
22
22
  project: 'your project',
23
- launch: 'your launch name'
23
+ launch: 'your launch name',
24
+ mode: 'DEFAULT'
24
25
  },
25
26
  }
26
27
  }
package/index.js CHANGED
@@ -27,7 +27,8 @@ class RPFormatter extends Formatter {
27
27
  name: this.rpConfig.launch,
28
28
  startTime: this.rpClient.helpers.now(),
29
29
  description: this.rpConfig.description,
30
- attributes: this.rpConfig.tags
30
+ attributes: this.rpConfig.tags,
31
+ mode: this.rpConfig.mode
31
32
  });
32
33
 
33
34
  this.launchId = launchObj.tempId;
@@ -39,13 +40,13 @@ class RPFormatter extends Formatter {
39
40
  for (const featureName in this.features) {
40
41
  await this.rpClient.finishTestItem(this.features[featureName], { status: 'PASSED' }).promise;
41
42
  }
42
-
43
43
  await this.rpClient.finishLaunch(this.launchId, {
44
44
  endTime: this.rpClient.helpers.now()
45
45
  }).promise;
46
46
  }
47
47
 
48
48
  async finishTest(envelope) {
49
+ if (envelope.testCaseFinished.willBeRetried) return;
49
50
  const testCase = this.eventDataCollector.getTestCaseAttempt(envelope.testCaseFinished.testCaseStartedId);
50
51
  const featureName = testCase.gherkinDocument.feature.name;
51
52
  if (!this.features[featureName]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/format-report-portal",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "cucumber formatter for report portal",
5
5
  "main": "index.js",
6
6
  "scripts": {},