forked from mttu-developers/konabot
添加显示 coverage 的工具
This commit is contained in:
6
justfile
6
justfile
@ -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
|
||||
|
||||
@ -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/"]
|
||||
|
||||
Reference in New Issue
Block a user