diff --git a/package.json b/package.json index 041baaf..014d17f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@redislabs/testcafe-reporter-reportportal-plugin", - "version": "0.1.12", + "version": "0.1.13", "private": false, "description": "Report Portal TestCafe reporter", "repository": "https://github.com/redislabs/reportportal-testcafe-plugin", diff --git a/src/report-portal.js b/src/report-portal.js index 009a05d..063b300 100644 --- a/src/report-portal.js +++ b/src/report-portal.js @@ -195,6 +195,14 @@ class ReportPortal { value: "Testcafe" }] }; + const rpsuite = process.env.rpsuite; + if (rpsuite !== undefined) { + // Add a new attribute to the options + options.attributes.push({ + key: 'feature', + value: `${rpsuite}` + }); + } //Incase the test needs to be under a suite if (this.suiteName)