-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
29 lines (22 loc) · 842 Bytes
/
pytest.ini
File metadata and controls
29 lines (22 loc) · 842 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
# pytest.ini
[pytest]
# Specifies that tests are contained in the 'tests' folder
testpaths = tests
# Allows verbose output for test results
addopts = -v
# Automatically discover test files matching 'test_*.py' or '*_test.py'
python_files = test_*.py *_test.py
# Automatically discover test classes that match 'Test*' (excluding the base class 'Test')
python_classes = Test*
# Automatically discover test functions that match 'test_*'
python_functions = test_*
# Option to add markers for different test categories, like 'slow' or 'fast'
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
fast: marks tests as fast (deselect with '-m "not fast"')
# Option to configure additional plugins if needed
# plugins =
# plugin1
# plugin2
# Option to adjust logging level, useful for debugging
# log_level = INFO