skillfed

pytest-jira-xray

pytest plugin to integrate tests with JIRA XRAY

pytest-jira-xray v0.9.4 164.5K downloads/30d#10,547 on PyPI29
Permissive license Apache-2.0 Active released

What it is and what it does

pytest-jira-xray is a pytest plugin that bridges automated test execution with JIRA's XRAY test management system. You mark individual pytest tests with JIRA XRAY test IDs using a decorator, run pytest with the --jira-xray flag, and the plugin automatically uploads pass/fail results, comments, and optional evidence back to JIRA. It supports multiple JIRA authentication schemes (basic auth, personal access tokens, client credentials), handles both JIRA Server/DC and Cloud endpoints, and allows grouping multiple test IDs under a single pytest test or linking multiple pytest tests to the same JIRA ID.

The plugin depends only on pytest and requests, making it lightweight to install. Configuration is entirely environment-variable-driven, so it integrates cleanly into CI/CD pipelines without code changes. You can upload to a new test execution, append to an existing one, or create a new execution under a test plan. It also supports defect linking, duplicate test ID handling, and custom result modification via pytest hooks.

Use it for:

  • Automatically report pytest test results to JIRA XRAY after each CI/CD run, eliminating manual test status updates.
  • Link automated regression tests to JIRA test cases and track execution history across builds and environments.
  • Attach test evidence (screenshots, logs) to JIRA test results when tests fail, captured via pytest hooks.
  • Manage test execution metadata (environment, version, revision) from environment variables in CI pipelines.
  • Support multiple JIRA authentication methods (basic, PAT, client credentials) for different organizational security policies.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that marks individual tests with JIRA XRAY IDs and uploads their pass/fail results back to JIRA, supporting multiple authentication methods and test execution tracking.

Yes, if you use JIRA XRAY and pytest. The plugin is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real integration gap. The permissive license and broad Python version support make it safe for most teams. Install it when you need automated test result reporting to JIRA; skip it if you don't use XRAY or manage test status through other means.

Install

pytest-jira-xray on PyPI

pip

pip install pytest-jira-xray

uv

uv add pytest-jira-xray

poetry

poetry add pytest-jira-xray

Installing pytest-jira-xray

Before you install

Low friction: pure Python wheel with only pytest and requests as runtime dependencies. Actively maintained with a recent release and no known vulnerabilities.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most organizational contexts.

Quickstart

# Install
pip install pytest-jira-xray

# Mark tests in test_example.py
import pytest

@pytest.mark.xray('JIRA-1')
def test_example():
    assert True

# Set environment variables
export XRAY_API_BASE_URL=https://jira.example.com
export XRAY_API_USER=username
export XRAY_API_PASSWORD=password

# Run pytest with plugin
pytest --jira-xray

Requires JIRA XRAY instance with valid credentials and network access; XRAY_API_BASE_URL and authentication environment variables must be set before running pytest.

Verify before relying

  • Whether the plugin handles partial test failures gracefully when JIRA connectivity is lost mid-execution
  • Performance impact when uploading results for large test suites
  • Compatibility with pytest plugins that also modify test reporting or result collection

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pytest, requests
Maintenance actively maintained — 112 days since the last release
Last repo commit
First released
Downloads 164,470/month — #10,547 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_jira_xray-0.9.4-py3-none-any.whl

Keywords: pytest, JIRA, XRAY

Development Status :: 4 - BetaFramework :: PytestOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9

Tags

pytest jira integrationupload test results to jiraxray test reportingjira test automation pluginpytest jira xraytest execution tracking jiraautomated test reporting
jira-integrationtest-reportingci-cd

More Testing packages