Add repo-root pytest config so async tests run from root
This commit is contained in:
10
pytest.ini
Normal file
10
pytest.ini
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[pytest]
|
||||||
|
# Ensure pytest-asyncio is in auto mode for async tests without explicit markers.
|
||||||
|
asyncio_mode = auto
|
||||||
|
|
||||||
|
# Run the backend test suite from the repository root.
|
||||||
|
testpaths = backend/tests
|
||||||
|
pythonpath = backend
|
||||||
|
|
||||||
|
# Keep coverage output consistent with backend/pyproject.toml settings.
|
||||||
|
addopts = --cov=backend/app --cov-report=term-missing
|
||||||
Reference in New Issue
Block a user