request test coverage machinery, propose branch
authorSimon McVittie <smcv@debian.org>
Wed, 9 Nov 2011 23:49:30 +0000 (23:49 +0000)
committerSimon McVittie <smcv@debian.org>
Wed, 9 Nov 2011 23:49:30 +0000 (23:49 +0000)
doc/plugins/contrib/trail.mdwn
doc/todo/test_coverage.mdwn [new file with mode: 0644]

index 9b8da32d09bacb85e9729097ec9967e6f5403665..5adff4c78b29f45c29409c3e18b0ea5c28d47afa 100644 (file)
@@ -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 (file)
index 0000000..4c0e9e1
--- /dev/null
@@ -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]]