Skip to content
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-discover-0.1.0.8 test suite failure #22

Open
peti opened this issue Mar 6, 2018 · 6 comments
Open

doctest-discover-0.1.0.8 test suite failure #22

peti opened this issue Mar 6, 2018 · 6 comments

Comments

@peti
Copy link

peti commented Mar 6, 2018

Citing from https://hydra.nixos.org/build/70559108:

running tests
Running 1 test suites...
Test suite doctests: RUNNING...
### Failure in /build/doctest-discover-0.1.0.8/src/Main.hs:30: expression `map (stripPrefix prefix) <$> getAbsDirectoryContents "test/example"'
expected: [Just "/test/example/Foo.hs",Just "/test/example/Foo/Bar.hs"]
 but got: *** Exception: test/example: getDirectoryContents:openDirStream: does not exist (No such file or directory)
Examples: 21  Tried: 21  Errors: 0  Failures: 1
Test suite doctests: FAIL

This looks like these files are missing from the release tarball.

@bergmark
Copy link

Not sure if this was fixed, but another extra-source-file is (also) missing:

Building test suite 'doctests' for doctest-discover-0.1.0.9..
doctest-discover: config.json: openFile: does not exist (No such file or directory)

bergmark added a commit to commercialhaskell/stackage that referenced this issue Jun 23, 2018
@karun012
Copy link
Owner

It's really weird. Travis seems happy. I will take a look when I get a chance.

@endgame
Copy link

endgame commented Jul 22, 2018

I suspect it's because it's not being added to the sdist. Try adding extra-source-files: config.json to the top-level stanza in the cabal file?

@karun012
Copy link
Owner

v0.2.0.0 should have it (20a88a6)

basvandijk pushed a commit to NixOS/nixpkgs that referenced this issue Jul 23, 2018
@bergmark
Copy link

Still seems to be an issue in 0.2.0.0

> /tmp/stackage-build12/doctest-discover-0.2.0.0$ dist/build/doctests/doctests
/tmp/stackage-build12/doctest-discover-0.2.0.0/src/Main.hs:22: failure in expression `readConfig (Just "test/test-config.json")'
expected: Just (Config {ignore = ..., sourceFolders = ..., doctestOptions = ...})
 but got: *** Exception: test/test-config.json: openFile: does not exist (No such file or directory)

/tmp/stackage-build12/doctest-discover-0.2.0.0/src/Main.hs:43: failure in expression `map (stripPrefix prefix) <$> getAbsDirectoryContents "test/example"'
expected: [Just "/test/example/Foo.hs",Just "/test/example/Foo/Bar.hs"]
 but got: *** Exception: test/example: getDirectoryContents:openDirStream: does not exist (No such file or directory)

Examples: 24  Tried: 23  Errors: 0  Failures: 2

@mihaimaruseac
Copy link

Seems fixed now

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

5 participants