aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Withers <chris@simplistix.co.uk>2019-04-30 21:32:10 +0100
committerChris Withers <chris@withers.org>2019-05-02 09:00:35 +0100
commit0867420f6a299e69bc39d3b5127e405905ccfe28 (patch)
treebef5c85d2afff5352d3856d15cc8ae17a2dbfc30
parenta5ed43f83ad073cdc24e9673e404a1d15e690775 (diff)
downloadplatform_external_python_mock-0867420f6a299e69bc39d3b5127e405905ccfe28.tar.gz
platform_external_python_mock-0867420f6a299e69bc39d3b5127e405905ccfe28.tar.bz2
platform_external_python_mock-0867420f6a299e69bc39d3b5127e405905ccfe28.zip
add coverage reporting
-rw-r--r--.coveragerc14
-rw-r--r--.gitignore2
-rw-r--r--setup.cfg1
3 files changed, 17 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..5a29219
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,14 @@
+[run]
+source = mock
+omit = mock/tests/__main__.py
+
+[report]
+exclude_lines =
+ pragma: no cover
+ if __name__ == .__main__.:
+ : pass
+
+[paths]
+source =
+ mock/
+ /root/project/mock/
diff --git a/.gitignore b/.gitignore
index 70d2e1a..b488ed9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@ runtox
.testrepository
.*.swp
README.html
+.coverage
+.coverage.*
diff --git a/setup.cfg b/setup.cfg
index 39862cd..677e2d1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -37,6 +37,7 @@ docs =
sphinx
test =
pytest
+ pytest-cov
build =
twine
wheel