(no commit message)
[ikiwiki.git] / doc / todo / test_coverage.mdwn
1 [[!tag patch]]
2 [[!template id=gitbranch branch=smcv/coverage author="[[smcv]]"]]
3
4 It would be nice for `make coverage` (or something) to produce a HTML
5 test-coverage report. I found this very useful for test-driven development of
6 [[plugins/contrib/trail]].
7
8 Limitations of the current branch, which uses [[!cpan Devel::Cover]]:
9
10 * Some tests use `./blib` and some use `.` so coverage gets split between
11   the two copies of each module; not a problem for [[plugins/contrib/trail]]
12   which only has one test.
13
14 * The [[plugins/git]] and [[plugins/mercurial]] plugins want to `chdir`,
15   and so does [[!cpan Devel::Cover]], so they fight. For now, those tests
16   are disabled under `make coverage`.
17
18 --[[smcv]]