uv run pytest --cov=<package_name> --cov-report=html
To run a specific test file or function:
uv run pytest tests/test_main.py
uv run pytest tests/test_main.py::test_function_name
To see print output:
uv run pytest -s
If tests fail, analyze the failures and suggest fixes.
1---2name: pytest3description: Pytest4---5# /pytest67Run tests for the Python project using uv.89## Instructions1011Run tests with pytest:1213```bash14uv run pytest15```1617For verbose output:1819```bash20uv run pytest -v21```2223With coverage:2425```bash26uv run pytest --cov=<package_name> --cov-report=html27```2829To run a specific test file or function:3031```bash32uv run pytest tests/test_main.py33uv run pytest tests/test_main.py::test_function_name34```3536To see print output:3738```bash39uv run pytest -s40```4142If tests fail, analyze the failures and suggest fixes.
Run npx skillmds@latest add rootwarp/pytest in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Pytest It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
rootwarp (@rootwarp) published this skill. Their other Agent Skills are listed on their SkillMD profile.