pytest-jira-xray
pytest plugin to integrate tests with JIRA XRAY
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires JIRA XRAY instance with valid credentials and network access; XRAY_API_BASE_URL and authentication environment variables must be set before running pytest.
- Low friction: pure Python wheel with only pytest and requests as runtime dependencies.
- Actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most organizational contexts.
last release 2026-04-24 (112 days) · last repo commit 2026-04-24 · 29 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 164,470 downloads/mo, #10,547 on PyPI
Alternatives
Verify before relying
# 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- 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
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 on it.
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
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.
Requires JIRA XRAY instance with valid credentials and network access; XRAY_API_BASE_URL and authentication environment variables must be set before running pytest.
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
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 packagespytestrequests |
| 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 |
| Classifiers | 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 |
Evidence: pytest_jira_xray-0.9.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest jira integration”
- pytest-jira-xrayA pytest plugin that marks individual tests with JIRA XRAY IDs and…
- pytest-jiraA pytest plugin that links test cases to JIRA tickets, allowing tests…
- apache-airflow-providers-atlassian-jiraProvides Apache Airflow operators and hooks to create, query, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-jira · pytest-runtime-xfail · pytest-check · pytest-json · cosmic-ray · pytest-ordering · pytest-azurepipelines · pytest-only · pytest-reportportal · mypy-boto3-xray