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

hash in tix file for Main does not match hash in mix file #12

Open
brandon-leapyear opened this issue Feb 20, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@brandon-leapyear
Copy link
Contributor

Describe the bug

If you have two projects, one with a test suite and one with an executable, then running hpc-lcov on the .tix file generated by the executable will find the wrong .mix file for the Main module

Steps to Reproduce

stack test --coverage package1
stack build --coverage package2
stack exec package2-exe
hpc-lcov --file package2-exe.tix --main-package package2

Expected behavior

Environment

  • Stack version:
  • Library version:

Additional context

Workaround: delete or move the Main.mix file for the test suite

@brandon-leapyear brandon-leapyear added the bug Something isn't working label Feb 20, 2020
@brandon-leapyear
Copy link
Contributor Author

brandon-leapyear commented Feb 20, 2020

This is an old work account. Please reference @brandonchinn178 for all future communication


Possible solution: if tixModuleName tixModule is Main, only allow the mix directory for --main-package to be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant