python-testing
Installation
SKILL.md
Quick Reference
| pytest Command | Purpose |
|---|---|
pytest |
Run all tests |
pytest -v |
Verbose output |
pytest -k "name" |
Run tests matching pattern |
pytest -x |
Stop on first failure |
pytest --lf |
Run last failed |
pytest -n auto |
Parallel execution |
| Fixture Scope | Duration |
|---|---|
function |
Per test (default) |
class |
Per test class |
module |
Per test file |
session |
Entire test run |