From 7179ddce82944702f460bd931448de08c341633d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 4 Nov 2011 18:18:33 +0000 Subject: Add test coverage analysis (make coverage) --- Makefile.PL | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index e1a953f8f..b19636c60 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -154,6 +154,13 @@ extra_install: underlay_install -install -m 0644 wikilist $(DESTDIR)/etc/ikiwiki -install -m 0644 auto.setup $(DESTDIR)/etc/ikiwiki -install -m 0644 auto-blog.setup $(DESTDIR)/etc/ikiwiki + +# The git/hg plugins want to chdir; so does Devel::Cover. Skip those tests +# to stop them hurting each other. +coverage: + cover -delete + $(MAKE) test PERL5OPT=-MDevel::Cover PERL5LIB=. TEST_FILES="$(filter-out t/git.t t/mercurial.t,$(wildcard t/*.t))" + cover } } -- cgit v1.2.3