-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
59 lines (51 loc) · 1.44 KB
/
pytest.ini
File metadata and controls
59 lines (51 loc) · 1.44 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
[tool:pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Minimum version requirement
minversion = 7.0
# Add options
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--capture=no
--alluredir=allure-results
--clean-alluredir
--continue-on-collection-errors
--maxfail=5
--durations=10
# Markers
markers =
smoke: Smoke tests - critical functionality
regression: Regression tests - full test suite
login: Tests related to login functionality
registration: Tests related to user registration
navigation: Tests related to site navigation
ui: User interface tests
api: API integration tests
slow: Tests that take longer than usual
skip_ci: Skip in CI environment
# Filtering options
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# Test output
console_output_style = progress
junit_family = xunit2
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
log_file = test-reports/pytest.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)8s] %(filename)s:%(lineno)d %(funcName)s(): %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
# Timeout settings (if pytest-timeout is installed)
timeout = 300
timeout_method = thread