From: Andrew Schoen Date: Tue, 11 Nov 2014 22:10:27 +0000 (-0600) Subject: Adds a coverage report when running the tox tests X-Git-Tag: 1.1.0~1073^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F354%2Fhead;p=teuthology.git Adds a coverage report when running the tox tests Signed-off-by: Andrew Schoen --- diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..9f08918b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = teuthology/test/* diff --git a/.gitignore b/.gitignore index 92a27d27..ce0ba2fc 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ docs/build .ropeproject +.coverage diff --git a/tox.ini b/tox.ini index a46c7a77..dbe5b894 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,10 @@ deps= mock fudge nose + pytest-cov==1.6 + coverage==3.7.1 -commands=py.test -v {posargs:teuthology scripts} +commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts} [testenv:flake8] deps=