# Comparisons

pytest-uv does one thing: run one pytest suite on several Python versions, from `pytest` itself. Other tools do that and more, or do part of it. Each page below shows the same task in both tools, where each is stronger, and which to choose.

| Tool | What it is | Pick it over pytest-uv when |
| --- | --- | --- |
| [tox and tox-uv](<https://jirikuncar.github.io/pytest-uv/alternatives/vs-tox/index.md>) | Environment manager with an `ini`/`toml` config; tox-uv makes it use uv | You run more than pytest per version, or test a matrix of dependency versions |
| [nox](<https://jirikuncar.github.io/pytest-uv/alternatives/vs-nox/index.md>) | Environment manager configured in Python (`noxfile.py`), with a `uv` backend | Same as tox, and you prefer sessions written in Python |
| [Shell loop over `uv run`](<https://jirikuncar.github.io/pytest-uv/alternatives/vs-shell-loop/index.md>) | `for v in 3.11 3.12; do uv run --python $v pytest; done` | You need it once, or in a script, and don't want another dependency |
| [pytest-xdist alone](<https://jirikuncar.github.io/pytest-uv/alternatives/vs-xdist/index.md>) | Distributes tests over processes or hosts | You want one Python version spread over many CPUs |

## Quick comparison

|  | pytest-uv | tox + tox-uv | nox (uv backend) | Shell loop | xdist alone |
| --- | --- | --- | --- | --- | --- |
| Configuration | None, or `[tool.pytest-uv]` | `tox.ini` or `tox.toml` | `noxfile.py` | A script | `--tx` specs |
| Entry point | `pytest` | `tox` | `nox` | your shell | `pytest` |
| Runs other tools than pytest | No | Yes | Yes | Yes | No |
| Versions in parallel | Yes, one worker each | `tox run-parallel` | `nox --parallel` (opt-in per session) | Sequential unless you add `&` | Yes, if you build the environments |
| Results | One pytest report | One report per environment | One report per session | One per iteration | One pytest report |
| Installs from `uv.lock` | Yes (`uv sync --frozen`) | With `runner = uv-venv-lock-runner` | With a `uv sync` call in the session | Yes, `uv run` syncs | No |
| Builds environments | Yes | Yes | Yes | Yes | No |

The versions in this table and on each page are the ones the comparison was checked against (see `verified` in the page source).
