# Pytest

> Pytest

- Skill: `rootwarp/pytest` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rootwarp/pytest`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rootwarp/pytest/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: rootwarp (https://skillmd.com/u/rootwarp)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/rootwarp/pytest

---

# /pytest

Run tests for the Python project using uv.

## Instructions

Run tests with pytest:

```bash
uv run pytest
```

For verbose output:

```bash
uv run pytest -v
```

With coverage:

```bash
uv run pytest --cov=<package_name> --cov-report=html
```

To run a specific test file or function:

```bash
uv run pytest tests/test_main.py
uv run pytest tests/test_main.py::test_function_name
```

To see print output:

```bash
uv run pytest -s
```

If tests fail, analyze the failures and suggest fixes.

