-
Notifications
You must be signed in to change notification settings - Fork 112
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
how to run a Hspec test suite #208
Comments
You might want to check out Run your test suite on every edit section of this post by @parsonsmatt. |
OK. Thanks ! |
Is there a solution for this with cabal as well?
|
The underlying issue is a limitation in GHC, which is being addressed by a summer-of-code project as we speak. Cabal chooses to take that limitation and make it a fatal error. Stack chooses to continue, accepting things might not work. But I don't believe there's much to be done with Cabal, other than talking to the Cabal maintainers, or waiting for a GHC with multi-component support. |
is there any progress by now? |
Just checking in. Is there a workaround/solution for |
@sekunho - if you are referring to the issue of loading src and test at once, then I don't think it's fully merged yet, but I'm not sure. |
This is now possible with cabal-head, e.g. for ghcup:
until haskell/cabal#8726 makes into a release (probably 3.12 from the milestones). This allows something like:
|
I checked #128, but it does not fully solve the problem.
When I run
ghcid "--command=stack ghci H-Calc:spec" "--test=:main"
, it runs my test set correctly, and again correctly when I change the code of my test suite, but NOT if I change the code of my main project.Ghcid seems to track the
test
folder, but not thesrc
folder.My project is on github, so you can see the file structure and cabal file.
The text was updated successfully, but these errors were encountered: