Skip to content

v2 script cannot run doctest test suites #54

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

Closed
peti opened this issue Jul 16, 2016 · 2 comments
Closed

v2 script cannot run doctest test suites #54

peti opened this issue Jul 16, 2016 · 2 comments

Comments

@peti
Copy link
Contributor

peti commented Jul 16, 2016

doctest performs some kind of magic to evaluate source code found in comments. Therefore, doctest suites need to be run in an environment that has access to the compiler and libraries that were used to build the package. The v2 generator, however, executes the test suite outside of that environment, which means the test suite will fail: https://travis-ci.org/peti/hsemail/jobs/145211013.

@phadej
Copy link
Collaborator

phadej commented Dec 15, 2017

  • for GHC-8+ there are .ghc.environment files which helps (you have to find the files yourself).
  • for older ghc you could use cabal-doctest

@phadej
Copy link
Collaborator

phadej commented Dec 15, 2017

I'll close this ticket for now. The proper new-doctest solution is tracked in haskell/cabal#4500

@phadej phadej closed this as completed Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants