Master pytest's advanced features for scalable, maintainable test suites.
| Parallel execution | pytest-xdist with --dist loadscope | | Marker strategy | Category (smoke, integration) + Resource (db, llm) | | Fixture scope | Function default, session for expensive setup | | Plugin location | conftest.py for project, package for reuse | | Async testing | pytest-asyncio with auto mode |
custom-markers Keywords: pytest markers, test categorization, smoke tests, slow tests Solves: Categorize tests, run subsets in CI, skip expensive tests
Расширенные шаблоны pytest, включая пользовательские маркеры, плагины, перехватчики, параллельное выполнение и pytest-xdist. Используйте при реализации собственной тестовой инфраструктуры, оптимизации выполнения тестов или создании многоразовых тестовых утилит. Источник: yonatangross/orchestkit.