summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-09-15 21:36:25 +0200
committerJason R. Coombs <jaraco@jaraco.com>2019-09-15 21:36:25 +0200
commita28efc59c12e16a02ec98659b660e5b5809af650 (patch)
tree588193651432f769efc0f488868171ba5771b655
parent4baec898fdfef6da27653d21fdf223da10b13342 (diff)
downloadpytest-runner-a28efc59c12e16a02ec98659b660e5b5809af650.tar.gz
Enable coverage reporting on project
-rw-r--r--.coveragerc2
-rw-r--r--pytest.ini2
-rw-r--r--setup.cfg1
3 files changed, 4 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..896b501
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,2 @@
+[run]
+omit = .tox/*
diff --git a/pytest.ini b/pytest.ini
index 10681ad..a86fb66 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,6 +1,6 @@
[pytest]
norecursedirs=dist build .tox .eggs
-addopts=--doctest-modules --flake8 --black
+addopts=--doctest-modules --flake8 --black --cov
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings=
ignore:Possible nested set::pycodestyle:113
diff --git a/setup.cfg b/setup.cfg
index 9345869..77df505 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -30,6 +30,7 @@ testing =
pytest-checkdocs
pytest-flake8
pytest-black-multipy
+ pytest-cov
# local