-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
30 lines (27 loc) · 1.51 KB
/
Copy pathpytest.ini
File metadata and controls
30 lines (27 loc) · 1.51 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
27
28
29
30
[pytest]
# ── Test discovery ─────────────────────────────────────────────────────────────
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# ── Markers ────────────────────────────────────────────────────────────────────
markers =
smoke: Fast, critical-path tests (run on every commit)
regression: Full regression suite
login: Login-related tests
cart: Shopping-cart tests
checkout: Checkout-flow tests
api: API tests (no browser)
slow: Tests that take more than 30 seconds
# ── Output ─────────────────────────────────────────────────────────────────────
addopts =
-v
--tb=short
--strict-markers
--html=reports/report.html
--self-contained-html
# ── Logging ────────────────────────────────────────────────────────────────────
log_cli = true
log_cli_level = INFO
log_format = %(asctime)s | %(levelname)-8s | %(name)s | %(message)s
log_date_format = %Y-%m-%d %H:%M:%S