<div dir="ltr">Thanks for your reply!<div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Feng</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Vanessa McHale <<a href="mailto:vamchale@gmail.com">vamchale@gmail.com</a>> 于2019年12月10日周二 下午11:45写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">What I would do would be run<div><br></div><div><font face="Menlo">cabal test --enable-coverage</font></div><div><br></div><div>cabal-install has reasonably good support for coverage builds</div><div><br></div><div>Cheers,</div><div>Vanessa</div><div><div><br><blockquote type="cite"><div>On Dec 10, 2019, at 7:57 AM, F L <<a href="mailto:spiridempt@gmail.com" target="_blank">spiridempt@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div style="margin:0px;padding:0px 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">I am using Haskell Program Coverage (HPC) to collect coverage information for Pandoc (<a href="https://github.com/jgm/pandoc" rel="noopener noreferrer" style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline" target="_blank">https://github.com/jgm/pandoc</a>). 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".</div><div style="margin:0px;padding:0.8em 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">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.</div><div style="margin:0px;padding:0.8em 0px 0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:"Noto Sans",Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">Thanks very much!</div></div>
_______________________________________________<br>Haskell-Cafe mailing list<br>To (un)subscribe, modify options or view archives go to:<br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br></div></div></blockquote></div>