[diffoscope] 01/01: Run tests with python3-coverage and generate reports post-build.

Chris Lamb chris at chris-lamb.co.uk
Tue Aug 16 11:24:23 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 2cd3395d076798c2245c915f73e936316fa50fb9
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Aug 16 10:18:10 2016 +0100

    Run tests with python3-coverage and generate reports post-build.
---
 .gitignore     | 2 ++
 debian/control | 6 ++++++
 debian/rules   | 6 +++++-
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index eb4cf19..6df3b7e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,5 @@
 /htmlcov/
 favicon.png
 /debian/*.1
+.coverage
+/htmlcov/
diff --git a/debian/control b/debian/control
index 3db448d..2910607 100644
--- a/debian/control
+++ b/debian/control
@@ -18,12 +18,18 @@ Build-Depends:
  enjarify,
  fp-utils,
  ghostscript,
+ libjs-jquery,
+ libjs-jquery-hotkeys,
+ libjs-jquery-isonscreen,
+ libjs-jquery-tablesorter,
+ libjs-jquery-throttle-debounce,
  llvm,
  mono-utils,
  pdftk,
  poppler-utils,
  python-argcomplete,
  python3-all,
+ python3-coverage,
  python3-debian,
  python3-docutils,
  python3-guestfs,
diff --git a/debian/rules b/debian/rules
index 6c786f3..4a5fa93 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,6 @@ ifneq ($(VERSION_dch),$(VERSION_py))
 endif
 
 export PYBUILD_DESTDIR = debian/diffoscope
-export PYBUILD_TEST_ARGS = -v -r sxX
 
 %:
 	dh $@ --with python3 --with bash-completion --buildsystem=pybuild
@@ -39,6 +38,11 @@ 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