[python-dtcwt] 25/38: fix coverage reporting

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Mar 8 11:39:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-dtcwt.

commit f8c01bcc87ab93c4679e81dd6881344fcfc0f16c
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Wed Aug 5 10:34:09 2015 +0100

    fix coverage reporting
    
    Add pytest-cov plugin to enable coverage reporting and remove old nose-specific
    coverage information.
---
 .coveragerc            | 7 -------
 tests/requirements.txt | 2 ++
 tox.ini                | 2 +-
 3 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index 9436580..0000000
--- a/.coveragerc
+++ /dev/null
@@ -1,7 +0,0 @@
-# Workaround for nosetests overriding coverage output
-# See: https://github.com/coagulant/coveralls-python#nosetests
-[report]
-omit =
-    */python?.?/*
-    */site-packages/nose/*
-    tests/*
diff --git a/tests/requirements.txt b/tests/requirements.txt
index 8c299f3..d631253 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -1,3 +1,5 @@
 # Testing-specific packages
 pytest
+pytest-capturelog
+pytest-cov
 coverage
diff --git a/tox.ini b/tox.ini
index 98ac935..4700e27 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,5 +8,5 @@ commands=
     # We can't list these in deps since pyopencl moans if numpy is not
     # fully installed at pip-install time.
     py{27,34}-opencl: pip install -rtests/opencl-requirements.txt
-    py.test {posargs}
+    py.test --cov={envsitepackagesdir}/dtcwt --cov-report=term {posargs}
 sitepackages=True

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list