diff --git a/pyproject.toml b/pyproject.toml index 7c3266e..59992f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,8 @@ dev = [ "bump-my-version>=0.29.0", "icecream>=2.1.4", "nuitka>=2.5.9", - "prek>=0.3.2", + "pytest", + "pytest-cov", "pyinstaller>=6.17.0", ] swbtest = ["alive-progress>=3.3.0"] @@ -72,3 +73,11 @@ filename = ".version" [[tool.uv.index]] name = "gitea" url = "https://git.theprivateserver.de/api/packages/PHB/pypi/simple/" + + +[tool.pytest.ini_options] +testpaths = ["tests"] +addopts = "--cov=src --cov-report=term-missing" + +[tool.coverage.run] +omit = ["main.py", "test.py", "tests/*", "__init__.py", ] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 602a33c..0000000 --- a/pytest.ini +++ /dev/null @@ -1,12 +0,0 @@ -[pytest] -# command should be *including --cov to generate coverage report -addopts = --cov -testpaths = tests -python_files = test_*.py -; Configuring pytest -; More info: https://docs.pytest.org/en/6.2.x/customize.html - -;Logging -; DATE FORMAT EXAMPLE: %Y-%m-%d %H:%M:%S -; log_cli_format = %(asctime)s %(levelname)-8s %(name)-8s %(message)s -; log_cli_date_format = %H:%M:%S