From 213b4c2a2b840aab46c714eafd091245ee4e24bd Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 20 May 2020 07:18:21 -0700 Subject: [PATCH] coverage tools --- .gitignore | 1 + Makefile | 4 ++++ pyproject.toml | 1 + 3 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 91cf047e..37d27e54 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ dnspython.egg-info/ .mypy_cache/ .python-version poetry.lock +htmlcov diff --git a/Makefile b/Makefile index 8177b150..4caab2c6 100644 --- a/Makefile +++ b/Makefile @@ -79,3 +79,7 @@ potype: poflake: poetry run flake8 dns + +pocov: + poetry run coverage run -m pytest + poetry run coverage html diff --git a/pyproject.toml b/pyproject.toml index 732af706..44a1dd70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ mypy = "^0.770" pytest = "^5.4.1" flake8 = "^3.7.9" sphinx = "^3.0.0" +coverage = "^5.1" [tool.poetry.extras] doh = ['requests', 'requests-toolbelt'] -- 2.47.3