Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage for binaries #70

Open
atodorov opened this issue Jun 16, 2017 · 1 comment
Open

Coverage for binaries #70

atodorov opened this issue Jun 16, 2017 · 1 comment

Comments

@atodorov
Copy link

According to haskell/cabal#3902 cabal is very bad at reporting coverage on binaries. However when the --enable-coverage flag is used and these binaries are executed they will produce a binary.tix file on disk.

Can hpc-coveralls use these extra files when building the JSON data ?

What needs to happen for this to work? Can you point me around the code, give me some hints. I may be able to contribute a PR if I know what to look for.

@atodorov
Copy link
Author

atodorov commented Aug 9, 2017

FYI I've had this working by executing my binaries and then

cp binary.tix dist/hpc/vanilla/binary/binary.tix
hpc-coveralls --display-report tests binary

More info at http://atodorov.org/blog/2017/06/27/producing-coverage-report-for-haskell-binaries/

however for some reason in my latest build jobs I don't see coverage being generated for the binaries files. Not sure why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant