Skip to content

Installation

uv tool install inline-tests

This gives you itest globally. For one-off use:

uvx inline-tests

As a project dependency

uv add inline-tests --group dev

Or with pip:

pip install inline-tests

With extras

inline-tests bundles common testing dependencies as optional extras:

# Everything
uv tool install inline-tests[full]

# Async testing (pytest-asyncio, anyio, pyleak)
uv tool install inline-tests[async]

# Core testing extras (async + mock + coverage)
uv tool install inline-tests[essentials]

See Extras for the full list.

Verify installation

itest --version

You should see the pytest version. inline-tests is a pytest plugin, so it uses pytest's CLI.