From: Simon McVittie Date: Wed, 9 Nov 2011 23:49:30 +0000 (+0000) Subject: request test coverage machinery, propose branch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b4351acbaf91b5420e9e5aba985b3f1378bb966;p=ikiwiki.git request test coverage machinery, propose branch --- 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]]