Questions tagged [haskell-program-coverage]

3 questions
6
votes
1 answer

Combining test coverage with hpc

I find hpc really confusing, even after reading several explanations and playing around quite a bit. I have a library HML, and two test suites fileio-test and types-test, using HTF (I plan on moving to tasty). I'd like to run the two tests and then…
jorgen
  • 3,425
  • 4
  • 31
  • 53
3
votes
2 answers

How can I generate HTML code coverage reports with new cabal?

Running stack test --coverage generates a nice HTML report showing what lines your test suite covers. How can I achieve the same thing using cabal new-test? I'm able to pass --enable-coverage to generate a .tix file but I'm not sure what to run on…
MaxGabriel
  • 7,617
  • 4
  • 35
  • 82
0
votes
1 answer

Haskell program coverage

I'm trying to use the ghc -fhpc command in order to create a .tix file, but after I enter the command ghc -fhpc filename, nothing appears. What should I do?