添加显示 coverage 的工具

This commit is contained in:
2026-03-07 16:21:49 +08:00
parent 27e53c7acd
commit 9064b31fe9
2 changed files with 6 additions and 1 deletions

View File

@ -2,4 +2,8 @@ watch:
poetry run watchfiles bot.main . --filter scripts.watch_filter.filter
test:
poetry run pytest --cov=konabot --cov-report term-missing:skip-covered
poetry run pytest --cov-report term-missing:skip-covered
coverage:
poetry run pytest --cov-report html
python -m http.server -d htmlcov

View File

@ -62,6 +62,7 @@ testpaths = "tests"
python_files = "test_*.py"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
addopts = "--cov=./konabot/"
[tool.nonebot]
# plugin_dirs = ["konabot/plugins/"]