Skip to content

1. Create a project

Install uv using Astral's official instructions, then start a Python 3.12+ project:

uv init --python 3.12 xray-demo
cd xray-demo
uv add --dev pytest pytest-jira-xray-plus

Follow the complete uv guide to save the two-case example and run uv run pytest. It covers .venv, uv.lock, existing projects and a genuinely offline case plan with stable separate identities. No shell activation is needed. For the rest of this guide, use uv run pytest in place of python -m pytest (and uv run python for other Python commands).

Alternative: pip and venv

Create xray-demo, open a terminal there, then create a virtual environment:

python -m venv .venv

Activate it with source .venv/bin/activate on Linux/macOS or .venv\Scripts\Activate.ps1 in PowerShell. Install the published version:

python -m pip install pytest-jira-xray-plus==1.0.0 pytest-xdist pytest-rerunfailures
python -m pytest --help

Never install both forks in one environment. If both were installed, create a fresh environment.