xray-jira-reporter
A wrapper over axios library to import xray for jira
Installation
$ npm install --save xray-jira-reporter
API
Create A Client
const xRayJiraReporter = ; // Initializeconst options = xrayUrl: 'https://<project url>/rest/raven/1.0/import/execution/cucumber' authorization: '<authentication type / key>' cucumberReportJsonFile: 'folderpath/cucumber_report.json';xRayJiraReporter;
To import the results in specific jira test execution object
Must add a feature tag as @TestExecID
@TestExecID
Feature: This is a sample feature
//Add jira test execution object key const options = xrayUrl: 'https://<project url>/rest/raven/1.0/import/execution/cucumber' authorization: '<authentication type / key>' cucumberReportJsonFile: 'folderpath/cucumber_report.json' testExecutionID: 'JIRA-12345' ;xRayJiraReporter;
License
Copyright (c) 2020, Javed Ali (MIT License)