-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
70 lines (63 loc) · 1.48 KB
/
Copy pathpytest.ini
File metadata and controls
70 lines (63 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[pytest]
minversion = 7.0
asyncio_mode = auto
# Add the package's source and test directories to the Python path
pythonpath = src tests
# Test discovery settings
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Pytest command-line options
addopts =
-ra
-vv
-s
--import-mode=importlib
--color=yes
--show-capture=all
--tb=short
--showlocals
--maxfail=5
--html=logs/report.html
--self-contained-html
--alluredir=logs/allure-results
--durations=10
--strict-markers
# Logging configuration
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s (%(filename)s:%(lineno)s)
log_file = logs/pytest.log
log_file_level = DEBUG
log_date_format = %Y-%m-%d %H:%M:%S
# Test markers
markers =
slow: marks tests as slow
integration: marks integration tests
smoke: marks smoke tests
regression: marks regression tests
postgres: marks tests that require PostgreSQL (deselect with '-m "not postgres"')
asyncio: mark an async test
# Required plugins
required_plugins =
pytest-sugar>=0.9.7
pytest-html>=4.1.1
allure-pytest>=2.14.0
pytest-clarity>=1.0.1
# HTML report configuration
render_collapsed = failed,error
initial_sort = result
generate_report_on_test = True
# Directories to ignore
norecursedirs =
.git
.venv
dist
build
logs
__pycache__
# Warning filters
filterwarnings =
error
ignore::DeprecationWarning