-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpytest.ini
More file actions
32 lines (28 loc) · 1013 Bytes
/
pytest.ini
File metadata and controls
32 lines (28 loc) · 1013 Bytes
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
[tool:pytest]
# Configuration for running tests
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Markers for categorizing tests
markers =
mock: Tests that use mocked components instead of real systems
integration: Tests that integrate multiple system components
unit: Unit tests for individual components
slow: Tests that take a long time to run
real_system: Tests that interact with real systems (not mocks)
# Default options for test discovery and reporting
addopts =
-v
--tb=short
-p no:warnings
--disable-warnings
# Additional options for better test experience
minversion = 6.0
xfail_strict = true
# Commands for different test types:
# To run only mock tests: pytest -m "mock" -x
# To run only real system tests: pytest -m "real_system"
# To run all tests except real system: pytest -m "mock or not real_system"
# To run all tests: pytest
# To run comprehensive mock tests only: pytest tests/test_comprehensive*mocked*.py