Open kindaro opened 6 years ago
Are you using a local copy of doctest-discover?
@karun012 Yes, I cloned this repo and stack install
ed from there. This was the wrong thing to do. I just stack install
ed whatever version comes from Stackage and it works flawlessly.
Awesome. I'll leave this issue open. I'd like to make sure it works even if you use a local copy.
What I do: I have a few doctests in the module
Symbolic.hs
of the projectsymbolic
. It's nothing special.doctest
runs manually from command line without any sign of misbehaviour, correctly performs the tests specified in the module. I try to set updoctest-discover
to run tests withstack
.My expectations: When set up in
package.yaml
as recommended,doctest
will be run bystack test
successfully.What happens: Everything builds alright. As the process enters the testing stage, an error occurs:
I don't know what to do. These files in
.stack-work
apparently belong todoctest
, notdoctest-discover
, but, as I said, I can rundoctest
from command line without any issues. I am reporting this here because I have no better idea.These are the relevant code extracts:
doctest-config.json
doctest-driver.hs
package.yaml
I will appreciate any advice.