-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
26 lines (22 loc) · 1.23 KB
/
Copy pathpytest.ini
File metadata and controls
26 lines (22 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[pytest]
# ==========================================
# FIX: добавлен pytest.ini — раньше конфигурации pytest не было вообще.
# Без этого файла pytest использует дефолты и может найти тесты
# в корне проекта (включая скрипты вроде main.py, 111.py и т.д.).
# ==========================================
# Искать тесты только в папке tests/
testpaths = tests
# Шаблоны имён файлов/классов/функций которые pytest считает тестами
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Кастомные маркеры — позволяют запускать подмножества тестов:
# pytest -m smoke — только быстрые проверки
# pytest -m negative — только негативные кейсы
# pytest -m positive — только happy path
markers =
smoke: quick smoke tests
negative: negative/edge case tests
positive: happy path tests
# Глобальные опции: подробный вывод (-v), короткий traceback (--tb=short)
addopts = -v --tb=short