[Haskell-cafe] Why many .tix files are generated in Haskell Program Coverage

F L spiridempt at gmail.com
Mon Dec 16 06:55:59 UTC 2019

Thanks for your reply!

Indeed, I plan to collect the coverage information of each test case, which
means I need to execute each of them separately and utilize the .tix files.


Vanessa McHale <vamchale at gmail.com> 于2019年12月10日周二 下午11:45写道:

> What I would do would be run
> cabal test --enable-coverage
> cabal-install has reasonably good support for coverage builds
> Cheers,
> Vanessa
> On Dec 10, 2019, at 7:57 AM, F L <spiridempt at gmail.com> wrote:
> I am using Haskell Program Coverage (HPC) to collect coverage information
> for Pandoc (https://github.com/jgm/pandoc). However, after adding the
> -fhpc option to GHC and running the program, two .tix files are generated.
> One is test-pandoc.tix in the main directory and the other is pandoc.tix
> under the "test" directory (test/pandoc.tix). These two files have
> different contents and I just cannot see the meaning of them from their
> names. Moreover, I tried to execute "hpc show xxx.tix" for them and
> test/pandoc.tix gives "hpc: hash in tix file for module Main does not match
> hash in ./.hpc/Main.mix".
> So, I wonder the specific generation rules of HPC tix files (possibly
> including the number and location) and how I can get the correct coverage
> information.
> Thanks very much!
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20191216/54ce7544/attachment.html>

More information about the Haskell-Cafe mailing list