-
Notifications
You must be signed in to change notification settings - Fork 696
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
Cabal-3: doctest-discover fails for non-boot libraries #6087
Comments
This is actually a regression.
the tests build and run (with a test failure, but that is irrelevant). Now with cabal 3.0 (from 2019/06/03):
results in:
|
Note that |
Also fails on With cabal 3.0, the following works:
|
Maybe this is related. So the following command may work.
In my environment, the error is fixed. |
Hmm, |
closing on that basis. |
I have a simple cabal file:
where the module
P.hs
defines a doctestand where
doctest.hs
consists of:When running
cabal configure --enable-tests && cabal test
(using cabal-install v3 from git about a week ago) I get:The above project builds and passes the tests when run with
stack
.This is not a problem with
doctest-discover
because if I remove thebase-orphans
dependency and remove theBase.Orphans
import, the test builds and passes as expected.It therefore seems that the
doctest-discover
pre-processor is being executed without access to the package DB.I would like to get some advice on how to fix this. I am currently looking at
Distribution.Simple.Test.ExeV10.runTest
and looking to pass the package DB location to the test program there.The text was updated successfully, but these errors were encountered: