When using cabal install --enable-tests --enable-library-coverage to generate code coverage reports it will also generate code coverage reports for the testcode. Is there an option for cabal to let hpc ignore testcode?
I'd be pleasantly surprised if cabal yet has an option for this. Getting HPC to ignore things is (or perhaps used to be) moderately complicated as this example shows: http://www.haskell.org/haskellwiki/Haskell_program_coverage#Example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With