aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2011-11-09 23:49:30 +0000
committerSimon McVittie <smcv@debian.org>2011-11-09 23:49:30 +0000
commit6b4351acbaf91b5420e9e5aba985b3f1378bb966 (patch)
tree2c64b2ac2e5c4a3085de339396292d9c692fca5d /doc
parentcbea2d78d2153b3af29d80fc6d3992304c981a70 (diff)
downloadikiwiki-6b4351acbaf91b5420e9e5aba985b3f1378bb966.tar
ikiwiki-6b4351acbaf91b5420e9e5aba985b3f1378bb966.tar.gz
request test coverage machinery, propose branch
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/contrib/trail.mdwn3
-rw-r--r--doc/todo/test_coverage.mdwn18
2 files changed, 19 insertions, 2 deletions
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]]