From cd0b9d9c96b30634279f44afe0b0735ebee0513b Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 21 Nov 2024 12:16:59 +0100 Subject: [PATCH] [pytest] Tell it where tests are Also tell coverage how to behave --- pyproject.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e87510d..c17d348 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,3 +13,16 @@ build-backend = "hatchling.build" [tool.pytest.ini_options] 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