Configuring cabal to tell HPC to ignore certain functions #554
Replies: 2 comments 2 replies
-
Follow-up: I managed to get over 90%, but I'm still finding it hard to hit some expressions. My current branch is: https://github.com/ivanperez-keera/copilot/tree/develop-copilot-core-coverage. This is what I'm seeing: Some cases are due to laziness: In other cases, I don't understand why I can't hit the expression. For example: I thought this would be explored fully during comparison of values generated using Help to improve the tests to increase coverage would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
There is now an issue in HPC to track this: https://gitlab.haskell.org/hpc/hpc-bin/-/issues/21 |
Beta Was this translation helpful? Give feedback.
-
I want to configure a cabal package (specifically,
copilot-core
) so that, when HPC is executed during testing with coverage enabled, it ignores certain definitions, for example:Show
).Proxy
doesn't need to be WHNFed.I think there's a way to extract the tix file and modify it, but I'm trying to make this automated, and configure the cabal package so that the right options are passed by cabal to HPC, and that way even hackage will pick it up when it reports the coverage of our library.
Any pointers?
Also posted at: https://www.reddit.com/r/haskell/comments/1g8mm82/configuring_cabal_to_tell_hpc_to_ignore_certain/
Beta Was this translation helpful? Give feedback.
All reactions