test refactor: put pytest config in pyproject.toml

This commit is contained in:
Erik Sundell
2023-06-06 14:07:45 +02:00
parent 9e95961886
commit 06edf1a76b
2 changed files with 22 additions and 0 deletions

View File

@@ -32,3 +32,24 @@ target_version = [
"py310",
"py311",
]
# pytest is used for running Python based tests
#
# ref: https://docs.pytest.org/en/stable/
#
[tool.pytest.ini_options]
addopts = "--verbose --color=yes --durations=10 --maxfail=1 --cov=tljh"
asyncio_mode = "auto"
# pytest-cov / coverage is used to measure code coverage of tests
#
# ref: https://coverage.readthedocs.io/en/stable/config.html
#
[tool.coverage.run]
parallel = true
omit = [
"tests/**",
"integration-tests/**",
]