[pytest] Tell it where tests are

Also tell coverage how to behave
This commit is contained in:
bronsen 2024-11-21 12:16:59 +01:00
parent f4ed431a94
commit cd0b9d9c96

View file

@ -13,3 +13,16 @@ build-backend = "hatchling.build"
[tool.pytest.ini_options] [tool.pytest.ini_options]
pythonpath = ["src"] pythonpath = ["src"]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
data_file = "coverage/.coverage"
source = ["src"]
omit = ["*/migrations/*"]
[tool.coverage.html]
directory = "coverage/htmlcov"
[tool.coverage.report]
skip_empty = true