-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpytest.ini
More file actions
24 lines (21 loc) · 910 Bytes
/
pytest.ini
File metadata and controls
24 lines (21 loc) · 910 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
[pytest]
# Add the current directory to the Python path
pythonpath = .
# Additional options for pytest
addopts =
-v
--cov=hexapod
--cov-config=.coveragerc
--cov-report=term-missing
--cov-report=html:tests/reports/html
--cov-report=xml:tests/reports/coverage.xml
--cov-report=json:tests/reports/coverage.json
--disable-warnings
-W ignore::pytest.PytestUnhandledThreadExceptionWarning
# Specify test discovery patterns
testpaths = tests/ # Directory where tests are located
python_files = test_*.py # Files matching this pattern are considered test files
python_classes = Test* # Classes starting with 'Test' are test classes
python_functions = test_* # Functions starting with 'test_' are test functions
# Exclude directories from test discovery
norecursedirs = scripts/ # Exclude scripts directory from test discovery