Skip to content

Local doctest errors #290

@sjakobi

Description

@sjakobi
$ cabal test all
...
Test suite logged to:
/home/simon/prog/prettyprinter/dist-newstyle/build/x86_64-linux/ghc-9.14.1/prettyprinter-convert-ansi-wl-pprint-1.1.3/t/doctest/test/prettyprinter-convert-ansi-wl-pprint-1.1.3-doctest.log
1 of 1 test suites (1 of 1 test cases) passed.
src/Prettyprinter/Render/Terminal/Internal.hs:66: failure in expression `import Prettyprinter.Render.Terminal'
expected: 
 but got: <no location info>: error: [GHC-35235]
          ^
              Could not find module ‘Prettyprinter.Render.Terminal’.
              It is not a module in the current program, or in any known package.
          

Examples: 15  Tried: 4  Errors: 0  Failures: 1
Test suite doctest: FAIL
Test suite logged to:
/home/simon/prog/prettyprinter/dist-newstyle/build/x86_64-linux/ghc-9.14.1/prettyprinter-ansi-terminal-1.1.4/t/doctest/test/prettyprinter-ansi-terminal-1.1.4-doctest.log
0 of 1 test suites (0 of 1 test cases) passed.
Running 1 test suites...
Test suite doctest: RUNNING...
src/Prettyprinter/Internal.hs:2351: failure in expression `import Test.QuickCheck.Modifiers'
expected: 
 but got: <no location info>: error: [GHC-35235]
          ^
              Could not find module ‘Test.QuickCheck.Modifiers’.
              It is not a module in the current program, or in any known package.
          

Examples: 264  Tried: 103  Errors: 0  Failures: 1
Test suite doctest: FAIL
Test suite logged to:
/home/simon/prog/prettyprinter/dist-newstyle/build/x86_64-linux/ghc-9.14.1/prettyprinter-1.7.2/t/doctest/test/prettyprinter-1.7.2-doctest.log
0 of 1 test suites (0 of 1 test cases) passed.
Error: [Cabal-7125]
Tests failed for test:doctest from prettyprinter-1.7.2.
Tests failed for test:doctest from prettyprinter-ansi-terminal-1.1.4.

I suspect there's a workaround for these issues, but cabal test really ought to work out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions