@dev-blinq/cucumber_client 1.0.1231-dev → 1.0.1233-dev

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.
@@ -322,7 +322,8 @@ class ScenarioReport {
322
322
  }
323
323
  const reportLink = baseUrl + "/" + projectId + "/scenario-report/" + scenarioId;
324
324
  try {
325
- publishReportLinkToGuacServer(reportLink);
325
+ const status = getJsonReport(this).result.status;
326
+ publishReportLinkToGuacServer(reportLink, status === "PASSED");
326
327
  } catch (err) {
327
328
  logger.error(`Failed to publish report link to guac server: ${err}`);
328
329
  }
@@ -481,11 +482,11 @@ class ScenarioReport {
481
482
  }
482
483
  }
483
484
  }
484
- function publishReportLinkToGuacServer(reportLink) {
485
+ function publishReportLinkToGuacServer(reportLink, status) {
485
486
  try {
486
487
  if (existsSync("/tmp/report_publish.sh")) {
487
488
  const execAsync = promisify(exec);
488
- execAsync("sh /tmp/report_publish.sh " + reportLink);
489
+ execAsync("sh /tmp/report_publish.sh " + reportLink + " " + status);
489
490
  }
490
491
  } catch (error) {
491
492
  logger.error("Error while publishing report link to Guac server: " + error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1231-dev",
3
+ "version": "1.0.1233-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",