Publish pytest results to Jira and Xray.¶
Create or reuse one Generic Test per pytest parameter case and import independent results into an existing Test Execution. Plan offline before explicitly creating Tests.
Jira with Xray required · Python 3.12+ · pytest 9.1.1–9.x
Connect your tests to your Jira workflow¶
You need Jira with the Xray app, configured Generic Test fields and an existing Test Execution, and credentials with permission to import results. The requested target is on-premises Xray 8.5.3-j10, targeting independent Generic Tests. Generic is the required Test type; live import behavior on this exact server/version still requires validation. Native iteration rows and datasets are not implemented.
The guide takes you through installation, a parametrized test with explicit stable case IDs, an offline creation/result plan, authentication and controller-owned import. The plan has no Test keys and cannot be uploaded. The controller resolves separate Test issues, then imports their results as Test Runs in the chosen Test Execution.
-
Map and publish results
Create and reuse a separate Jira Test for each case and target an existing Test Execution. Review the offline creation/result plan, then explicitly authorize the controller to resolve Test keys and import results using protected environment variables.
-
Configure your integration
Find Server/Data Center authentication, execution settings, status rules and exact compatibility limits before applying the exporter to your project.
-
Debug and audit an import
Inspect offline plans, preserve durable mappings and retain local phase audits. These facilities support the Jira/Xray integration.
What reaches Jira/Xray?¶
Each case has its own Generic Test issue. Its independent result belongs to that Test’s Test Run within the chosen Test Execution. Native Xray iteration rows and datasets are not supported. The local audit report preserves individual pytest cases, but it is not an Xray import format.
Offline previews deliberately make no network request. They help review data; they do not establish valid credentials, permissions, issue keys or server mapping.
Read the compatibility boundaries.
Complete documentation¶
The full guide is preserved in the repository README and packaged for PyPI. Website tutorial and reference pages use that same source.