-
Notifications
You must be signed in to change notification settings - Fork 805
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
doctest build failures when no non-sandboxed package is installed #3
Comments
One issue that I can imagine is, that you need to modify any package for this to work (and maybe even that those packages then only work with If it makes sense, we could add better support to |
I don't think cabal-dev sets environment variables, but I'm not using cabal-dev in any event. How about letting doctest recognize |
Ah ok, I got that wrong. I thought you were using Or just use |
Unfortunately, |
Is it, that If so, I guess an environment variable is the way to go. |
Ahh, I was not aware of that. Still, an environment variable might be a safer approach. I can always set such a variable without worrying that a non-doctest test suite will choke on it, whereas command line arguments could confuse others. |
Yes, that's a valid point. The main difference is of course that command line flags already work, while an environment variable needs work on my part. But yes, open a ticket ;). I may look into it right away. |
Pinging @sol on this.
I'm trying to automate a bunch of tests of Hackage. The installation of packages always takes place in a sandbox. Unfortunately, this means that the doctest-based tests do not run:
Is there some way to specify the location of the sandbox to doctest so that it can use it for testing?
The text was updated successfully, but these errors were encountered: