Texual report about Code Coverage of my package

Cabal build has a flag which is --enable-coverage. It creates a Markup Report (HTML) but I want a textual one. Is it possible to have that for a package?

hpc report asks for a tix file which I am not sure how can I get without running the program. I can just build the package. Is there any way to get a tix from cabal build which I can use at hpc to create textual report alternatively?

A tix file records which parts of your program were executed. So, no, it is not possible to get this without actually executing the program! What usually happens is that you execute the test suite and use coverage based on that. Just running the test suite should generate .tix files if you compiled it with the right flags.

3 Likes

Ah, I get it. Makes sense.

Thanks