-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
42 lines (37 loc) · 1.59 KB
/
Copy pathpytest.ini
File metadata and controls
42 lines (37 loc) · 1.59 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
31
32
33
34
35
36
37
38
39
40
41
42
[pytest]
# ─────────────────────────────────────────────────────────────────────────────
# Playwright + Pytest Configuration
# Author : Surya Kulshreshtha
# Purpose: Central config for test discovery, markers, reporting & timeouts
# ─────────────────────────────────────────────────────────────────────────────
addopts =
--html=reports/report.html
--self-contained-html
--tb=short
-v
--strict-markers
--reruns=1
--reruns-delay=2
# Test discovery
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Custom markers — every marker used in tests MUST be declared here
markers =
smoke: Fast, critical path tests — run on every commit
regression: Full suite — run before release
ui: Browser-based UI tests
api: API / HTTP layer tests
e2e: End-to-end flow tests
slow: Tests that take > 30 seconds
sanity: Quick sanity checks post-deployment
login: Tests covering auth / login flows
data_driven: Tests that read data from external sources
# Timeout (seconds) for each individual test
timeout = 60
# Log settings
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)s] %(message)s
log_date_format = %Y-%m-%d %H:%M:%S