A Cucumber formatter for Xray Jira plugin that generates test execution reports in Xray JSON format and optionally uploads results directly to Jira. Current version 2.1.5, stable with minor updates. Supports capturing test results from Cucumber scenarios tagged with Jira issue keys, including automatic status updates (PASS/FAIL/TODO) and handling of Scenario Outlines to prevent false positives. Differentiates from generic formatters by direct Jira integration and CLI tools (xray-upload, xray-clear, xray-extract, xray-import).
npm install xray-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure xray-formatter as Cucumber formatter with Jira integration, using environment variables for sensitive data.
Ensure each scenario has exactly one Jira tag or order desired tag first.
Set tests to 'TODO' manually or add 'resetTests: true' in jiraOptions.
Provide all three options or omit them if only file output is needed.
Test regex with sample tags; ensure first capturing group matches the ID (e.g., /(PC-\d+)/).
Add 'regexp: /(YOUR-TAG-PREFIX-\d+)/' to formatOptions.jiraOptions.
Set endpoint, token, and execution in jiraOptions.
Check that tags follow pattern matched by regex; adjust regex if needed.