Gather coverage information during tests
authorGuido Günther <agx@sigxcpu.org>
Tue, 25 Oct 2011 19:31:25 +0000 (21:31 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 26 Oct 2011 08:00:54 +0000 (10:00 +0200)
.gitignore
debian/control
debian/rules

index f607c3c5a21625513abc677c7f45611077de6b77..a751aed1118c17220b46abcde2dae2334d615321 100644 (file)
@@ -1,5 +1,6 @@
 *.pyc
 .noseids
+.coverage
 gbp/gbp_version.py
 gbp_clone.py
 gbp_pq.py
index 12ef49de9595221f9ef811cb1575a8c3e5f302ad..8982c11948c2c65ccf63b5cba52d56f0daffe0b3 100644 (file)
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Guido Günther <agx@sigxcpu.org>
 Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5), python (>> 2.6.6-3~),
  pychecker, gtk-doc-tools, sgml2x, docbook-utils, jade, python-dateutil, python-nose,
- bash-completion, perl, python-epydoc,
+ bash-completion, perl, python-epydoc, python-coverage,
 # For the testsuite
  git-core, bzip2, unzip
 Standards-Version: 3.9.2
index d4d6652a13da9866db4a203a0a2e26221f9497eb..a2bc9215e25f02b780cdce151480699342656c7a 100755 (executable)
@@ -65,7 +65,7 @@ checks: links_stamp pychecker
        export GIT_AUTHOR_EMAIL=tests@example.com;      \
        export GIT_COMMITTER_NAME=$$GIT_AUTHOR_NAME;    \
        export GIT_COMMITTER_EMAIL=$$GIT_AUTHOR_EMAIL;  \
-       nosetests --exe --with-doctest
+       nosetests --exe --with-doctest --with-coverage --cover-package=gbp
 endif
 
 $(GBP_VERSION): debian/changelog