File: test_coverage.mdwn

package info (click to toggle)
ikiwiki 3.20190228-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,904 kB
  • sloc: perl: 31,100; python: 428; sh: 185; makefile: 120
file content (24 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[[!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.

> How annoying. I think in at least some cases there is reason to use
> `./blib` -- perhaps everything that users `.` should be changed to use
> it. --[[Joey]]

* 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]]

> [[merged|done]] --[[Joey]]