summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2014-06-30 20:58:56 -0400
committerDonald Stufft <donald@stufft.io>2014-06-30 20:59:32 -0400
commit6832f17a299e4d3ce7cffe8613fe7949e13f94b1 (patch)
tree28004df937312aa2c4bcb5d259320dfb91d78d49
parenta1fccee9ebf20c10ad74a686c136352782d6d220 (diff)
downloadpip-6832f17a299e4d3ce7cffe8613fe7949e13f94b1.tar.gz
Show coverage information for tests
-rw-r--r--.coveragerc4
-rw-r--r--.gitignore1
-rw-r--r--tox.ini3
3 files changed, 7 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 000000000..7a2f4b47c
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,4 @@
+[run]
+branch = True
+omit =
+ pip/_vendor/*
diff --git a/.gitignore b/.gitignore
index d58fe42ae..1a0d50cd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ MANIFEST
*.egg
*.py[cod]
*~
+.coverage
diff --git a/tox.ini b/tox.ini
index 46174b842..3768c80c2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,13 +6,14 @@ envlist =
deps =
pretend
pytest
+ pytest-cov
pytest-timeout
pytest-xdist
mock
scripttest>=1.3
https://github.com/pypa/virtualenv/archive/develop.zip#egg=virtualenv
commands =
- py.test --timeout 300 []
+ py.test --cov pip/ --cov-report term-missing --timeout 300 []
[testenv:docs]
deps = sphinx