From 6b4351acbaf91b5420e9e5aba985b3f1378bb966 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 9 Nov 2011 23:49:30 +0000 Subject: [PATCH] request test coverage machinery, propose branch --- doc/plugins/contrib/trail.mdwn | 3 +-- doc/todo/test_coverage.mdwn | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 doc/todo/test_coverage.mdwn diff --git a/doc/plugins/contrib/trail.mdwn b/doc/plugins/contrib/trail.mdwn index 9b8da32d0..5adff4c78 100644 --- a/doc/plugins/contrib/trail.mdwn +++ b/doc/plugins/contrib/trail.mdwn @@ -5,8 +5,7 @@ Available from [[smcv]]'s git repository, in the `trail` branch. This plugin aims to solve [[todo/wikitrails]] in a simpler way; it can also be used for [[navigation through blog posts|todo/Pagination_next_prev_links]]. -The branch also includes machinery to run most of the IkiWiki regression -tests under [[!cpan Devel::Cover]]. +The branch also includes [[todo/test_coverage]] machinery. Demo: diff --git a/doc/todo/test_coverage.mdwn b/doc/todo/test_coverage.mdwn new file mode 100644 index 000000000..4c0e9e16c --- /dev/null +++ b/doc/todo/test_coverage.mdwn @@ -0,0 +1,18 @@ +[[!tag patch]] +[[!template id=gitbranch branch=smcv/coverage author="[[smcv]]"]] + +It would be nice for `make coverage` (or something) to produce a HTML +test-coverage report. I found this very useful for test-driven development of +[[plugins/contrib/trail]]. + +Limitations of the current branch, which uses [[!cpan Devel::Cover]]: + +* Some tests use `./blib` and some use `.` so coverage gets split between + the two copies of each module; not a problem for [[plugins/contrib/trail]] + which only has one test. + +* The [[plugins/git]] and [[plugins/mercurial]] plugins want to `chdir`, + and so does [[!cpan Devel::Cover]], so they fight. For now, those tests + are disabled under `make coverage`. + +--[[smcv]] -- 2.44.0