-
Notifications
You must be signed in to change notification settings - Fork 107
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
output quality depends on $PWD #517
Comments
Thanks for the detailed report ❤️ I think that with Cabal, running tests from a sub-directory with its own This could link error outputs directly to the source files in the sub-directory, potentially explaining the detailed error reporting when tests are run from However, I couldn’t find specific documentation confirming this exact behavior, so it might very well be possible to fix this inside hedgehog itself. |
I am guessing that hedgehog records the relative path of the source code at compile time, and thus whether this relative path resolves to a file or not depends on the |
Sounds reasonable and pull requests welcome 💯 👍 |
I think this would require Template Haskell, I'm not aware of a way to achieve this with the Maybe just open a Cabal issue instead. When |
Agreed with @sol, if it's possible to fix this upstream it'll be better so that the whole community may benefit for this. |
in multi-package projects, it is common for each package to be placed in a separate sub-directory. the quality of the output depends on whether the tests are run from the root of the project or from the sub-directory of the package which contains the tests:
vs the much better looking:
For easy reproducibility, here is the file structure I have used to produce the output above. The only thing which matters is that my
toy.cabal
file is in$PROJECT_ROOT/my-package
instead of$PROJECT_ROOT
.The text was updated successfully, but these errors were encountered: