pytest-engineering
Installation
SKILL.md
pytest Engineering
Use this skill when
- Writing fixtures, parametrization, and markers
- Configuring conftest and plugins
- Speeding up and stabilizing the suite
Do not use this skill when
- Non-Python projects
- Testing design (use unit-testing)
Instructions
- Use fixtures for setup/teardown and scope them (function/class/session).
- Parametrize to cover cases compactly.
- Use markers for slow/e2e/smoke; exclude by default.
- Use monkeypatch and tmp_path; avoid monkeypatching internals broadly.
- Freeze time with freezegun rather than sleeping.
- Keep tests deterministic in ordering and isolation.
- Configure coverage thresholds meaningfully.