[Pkg-privacy-commits] [txtorcon] 60/96: add htmlcoverage target

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Sep 6 18:33:40 UTC 2015


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

lunar pushed a commit to branch master
in repository txtorcon.

commit 3ae5a064f6acab0716fc25697eba6062ee6e6fd7
Author: meejah <meejah at meejah.ca>
Date:   Fri Feb 6 02:00:34 2015 -0700

    add htmlcoverage target
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 4f3ae80..b4182c0 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,13 @@ coverage:
 	coverage -a -d annotated_coverage
 	coverage report --show-missing
 
+htmlcoverage:
+	coverage run --source=txtorcon `which trial` test
+	coverage -a -d annotated_coverage
+	coverage report --show-missing
+	coverage html  # creates htmlcov/
+	sensible-browser htmlcov/index.html
+
 # dang, this is a little annoying. maybe add a shell-script which
 # looks for "coverage" or "python-coverage"??
 coverage-debian:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/txtorcon.git



More information about the Pkg-privacy-commits mailing list