summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
-rw-r--r--pyproject.toml1
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 91cf047..37d27e5 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 8177b15..4caab2c 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 732af70..44a1dd7 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']