diff --git a/justfile b/justfile index e2f4ca3..8533c1c 100644 --- a/justfile +++ b/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 diff --git a/pyproject.toml b/pyproject.toml index 5b0c03d..61f0558 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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/"]