[diffoscope] 01/01: Use --cov* in PYBUILD_TEST_ARGS over manual invokation of coverage.

Chris Lamb chris at chris-lamb.co.uk
Tue Aug 16 14:16:43 CEST 2016


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 82b072f87255fea87236a7a6e42cb2a6bc303ee4
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Aug 16 13:16:30 2016 +0100

    Use --cov* in PYBUILD_TEST_ARGS over manual invokation of coverage.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
    
    Dch-Gbp: ignore
---
 debian/control | 2 +-
 debian/rules   | 7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 2910607..7874299 100644
--- a/debian/control
+++ b/debian/control
@@ -29,13 +29,13 @@ Build-Depends:
  poppler-utils,
  python-argcomplete,
  python3-all,
- python3-coverage,
  python3-debian,
  python3-docutils,
  python3-guestfs,
  python3-libarchive-c,
  python3-magic,
  python3-pytest,
+ python3-pytest-cov,
  python3-rpm,
  python3-setuptools,
  python3-tlsh (>= 3.4.1),
diff --git a/debian/rules b/debian/rules
index 4a5fa93..33492b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@ ifneq ($(VERSION_dch),$(VERSION_py))
 endif
 
 export PYBUILD_DESTDIR = debian/diffoscope
+export PYBUILD_TEST_ARGS = -v -r sxX --cov=diffoscope --cov-report=term-missing --cov-report=html
+export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/htmlcov'
 
 %:
 	dh $@ --with python3 --with bash-completion --buildsystem=pybuild
@@ -38,11 +40,6 @@ debian/diffoscope.bash-completion:
 override_dh_auto_build: debian/diffoscope.bash-completion $(MANPAGES)
 	dh_auto_build -O--buildsystem=pybuild
 
-override_dh_auto_test:
-	python3-coverage run --include=diffoscope/\* --module pytest -v -r sxX
-	python3-coverage report --show-missing
-	python3-coverage html
-
 override_dh_installman: $(MANPAGES)
 	dh_installman -O--buildsystem=pybuild
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list