[pytest] Tell it where tests are
Also tell coverage how to behave
This commit is contained in:
parent
f4ed431a94
commit
cd0b9d9c96
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue