Skip to content

Commit

Permalink
Add test coverage analysis (make coverage)
Browse files Browse the repository at this point in the history
  • Loading branch information
smcv committed Nov 9, 2011
1 parent 4a1a490 commit 7179ddc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,13 +2,15 @@ ikiwiki.setup
Makefile
Makefile.old
blib/*
/cover_db
doc/.ikiwiki/*
html/*
ikiwiki.out
ikiwiki-transition.out
ikiwiki-calendar.out
pm_to_blib
*.man
/po/cover_db
po/po2wiki_stamp
po/underlays/*/*.mdwn
po/underlays/basewiki/*/*.mdwn
Expand Down
7 changes: 7 additions & 0 deletions Makefile.PL
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 7179ddc

Please sign in to comment.