]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/test_coverage.mdwn
thanks for response; follow-up; I've got something working…
[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 > How annoying. I think in at least some cases there is reason to use
15 > `./blib` -- perhaps everything that users `.` should be changed to use
16 > it. --[[Joey]]
17
18 * The [[plugins/git]] and [[plugins/mercurial]] plugins want to `chdir`,
19   and so does [[!cpan Devel::Cover]], so they fight. For now, those tests
20   are disabled under `make coverage`.
21
22 --[[smcv]]
23
24 > [[merged|done]] --[[Joey]]