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

Test from hackage tarball fail #1

Closed
sternenseemann opened this issue Dec 5, 2021 · 1 comment
Closed

Test from hackage tarball fail #1

sternenseemann opened this issue Dec 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sternenseemann
Copy link

Missing test files seem to be at least part of the problem.

GHC 8.10.7

Running 2 test suites...
Test suite doctests: RUNNING...
Could not import module: Test.DocTest.Internal.Util. This can be caused by a number of issues:

 1. A module found by GHC contained tests, but was not in 'exposed-modules'.

 2. For Cabal users: Cabal did not generate a GHC environment file. Either:
   * Run with '--write-ghc-environment-files=always'
   * Add 'write-ghc-environment-files: always' to your cabal.project

 3. The testsuite executable does not have a dependency on your project library. Please add it to the 'build-depends' section of the testsuite executable.

See the example project at https://github.com/martijnbastiaan/doctest-parallel/tree/master/examples for more information.
Could not import module: Test.DocTest.Internal.Options. This can be caused by a number of issues:

 1. A module found by GHC contained tests, but was not in 'exposed-modules'.

 2. For Cabal users: Cabal did not generate a GHC environment file. Either:
   * Run with '--write-ghc-environment-files=always'
   * Add 'write-ghc-environment-files: always' to your cabal.project

 3. The testsuite executable does not have a dependency on your project library. Please add it to the 'build-depends' section of the testsuite executable.

See the example project at https://github.com/martijnbastiaan/doctest-parallel/tree/master/examples for more information.
Examples: 5  Tried: 0  Errors: 2  Unexpected output: 0
Test suite doctests: FAIL
Test suite logged to: dist/test/doctest-parallel-0.1-doctests.log
Test suite spectests: RUNNING...

<no location info>: error:
    can't find file: test/extract/declaration/Foo.hs

<no location info>: error:
    can't find file: test/extract/argument-list/Foo.hs

<no location info>: error:
    can't find file: test/extract/type-class/Foo.hs

<no location info>: error:
    can't find file: test/extract/type-class-args/Foo.hs

<no location info>: error:
    can't find file: test/extract/module-header/Foo.hs

<no location info>: error:
    can't find file: test/extract/imported-module/Bar.hs

<no location info>: error:
    can't find file: test/extract/export-list/Foo.hs

<no location info>: error:
    can't find file: test/extract/named-chunks/Foo.hs

<no location info>: error:
    can't find file: test/extract/comment-order/Foo.hs

<no location info>: error:
    can't find file: test/extract/setup/Foo.hs

<no location info>: error:
    can't find file: test/extract/regression/Fixity.hs

<no location info>: error:
    can't find file: test/extract/regression/ParallelListComp.hs

<no location info>: error:
    can't find file: test/extract/regression/ParallelListCompClass.hs

<no location info>: error:
    can't find file: test/extract/regression/ForeignImport.hs

<no location info>: error:
    can't find file: test/extract/regression/RewriteRules.hs

<no location info>: error:
    can't find file: test/extract/regression/RewriteRulesWithSigs.hs

<no location info>: error:
    can't find file: test/extract/dos-line-endings/Foo.hs

<no location info>: error: can't find file: test/extract/th/Foo.hs

<no location info>: error:
    can't find file: test/extract/type-families/Foo.hs

<no location info>: error:
    can't find file: test/parse/property/Fib.hs

<no location info>: error:
    can't find file: test/parse/simple/Fib.hs

<no location info>: error:
    can't find file: test/parse/non-exported/Fib.hs

<no location info>: error:
    can't find file: test/parse/multiple-examples/Foo.hs

<no location info>: error:
    can't find file: test/parse/no-examples/Fib.hs

<no location info>: error:
    can't find file: test/parse/setup-empty/Foo.hs

<no location info>: error:
    can't find file: test/parse/setup-only/Foo.hs

Extract
  extract
    extracts documentation for a top-level declaration FAILED [1]
    extracts documentation from argument list FAILED [2]
    extracts documentation for a type class function FAILED [3]
    extracts documentation from the argument list of a type class function FAILED [4]
    extracts documentation from the module header FAILED [5]
    extracts documentation from imported modules FAILED [6]
    extracts documentation from export list FAILED [7]
    extracts documentation from named chunks FAILED [8]
    returns docstrings in the same order they appear in the source FAILED [9]
    extracts $setup code FAILED [10]
    fails on invalid flags
  extract (regression tests)
    works with infix operators FAILED [11]
    works with parallel list comprehensions FAILED [12]
    works with list comprehensions in instance definitions FAILED [13]
    works with foreign imports FAILED [14]
    works for rewrite rules FAILED [15]
    works for rewrite rules with type signatures FAILED [16]
    strips CR from dos line endings FAILED [17]
    works with a module that splices in an expression from an other module FAILED [18]
    works for type families and GHC 7.6.1 FAILED [19]
Interpreter
  interpreterSupported
    indicates whether GHCi is supported on current platform
  ghcInfo
    includes "Have interpreter"
  safeEval
    evaluates an expression
    returns Left on unterminated multiline command
Location
  toLocation
    works for a regular SrcSpan
    works for a single-line SrcSpan
    works for a SrcSpan that corresponds to single point
    works for a bad SrcSpan
    works for a SrcLoc with bad locations
  enumerate
    replicates UnhelpfulLocation
    enumerates Location
Main
  doctest
    testSimple FAILED [20]
    it-variable FAILED [21]
    it-variable in $setup FAILED [22]
    failing FAILED [23]
    skips subsequent examples from the same group if an example fails FAILED [24]
    testImport FAILED [25]
    testCommentLocation FAILED [26]
    testPutStr FAILED [27]
    fails on multi-line expressions, introduced with :{ FAILED [28]
    testBlankline FAILED [29]
    examples from the same Haddock comment share the same scope FAILED [30]
    testDocumentationForArguments FAILED [31]
    template-haskell FAILED [32]
    handles source files with CRLF line endings FAILED [33]
    runs $setup before each test group FAILED [34]
    skips subsequent tests from a module, if $setup fails FAILED [35]
    works with additional object files FAILED [36]
    ignores trailing whitespace when matching test output FAILED [37]
  doctest as a runner for QuickCheck properties
    runs a boolean property FAILED [38]
    runs an explicitly quantified property FAILED [39]
    runs an implicitly quantified property FAILED [40]
    reports a failing property FAILED [41]
    runs a boolean property with an explicit type signature FAILED [42]
    runs $setup before each property FAILED [43]
  doctest (module isolation)
    should fail due to module isolation FAILED [44]
  doctest (regression tests)
    bugfixOutputToStdErr FAILED [45]
    bugfixImportHierarchical FAILED [46]
    bugfixMultipleModules FAILED [47]
    doesn't clash with user bindings of stdout/stderr FAILED [48]
    doesn't get confused by doctests using System.IO imports FAILED [49]
Options
  parseOptions
    --preserve-it
      without --preserve-it
        does not preserve the `it` variable
      with --preserve-it
        preserves the `it` variable
    with --help
      outputs usage information
    with --version
      outputs version information
    with --info
      outputs machine readable version information
    --verbose
      without --verbose
        is not verbose by default
      with --verbose
        parses verbose option
Parse
  getDocTests
    extracts properties from a module FAILED [50]
    extracts examples from a module FAILED [51]
    extracts examples from documentation for non-exported names FAILED [52]
    extracts multiple examples from a module FAILED [53]
    returns an empty list, if documentation contains no examples FAILED [54]
    sets setup code to Nothing, if it does not contain any tests FAILED [55]
    keeps modules that only contain setup code FAILED [56]
  parseInteractions (an internal function)
    parses an interaction
    drops whitespace as appropriate
    parses an interaction without a result
    works with a complex example
    attaches location information to parsed interactions
    basic multiline
    multiline align output
    multiline align output with >>>
    parses wild cards lines
    parses wild card chunks
   parseProperties (an internal function)
    parses a property
  mkLineChunks (an internal function)
    replaces ellipsis with WildCardChunks
    doesn't replace fewer than 3 consecutive dots
    handles leading and trailing dots
    handles leading and trailing ellipsis
Property
  runProperty
    reports a failing property
    runs a Bool property
    runs a Bool property with an explicit type signature
    runs an implicitly quantified property
    runs an implicitly quantified property even with GHC 7.4
    runs an explicitly quantified property
    allows to mix implicit and explicit quantification
    reports the value for which a property fails
    reports the values for which a property that takes multiple arguments fails
    defaults ambiguous type variables to Integer
  freeVariables
    finds a free variables in a term
    ignores duplicates
    works for terms with multiple names
    works for names that contain a prime
    works for names that are similar to other names that are in scope
  parseNotInScope
    when error message was produced by GHC 7.4.1
      extracts a variable name of variable that is not in scope from an error message
      ignores duplicates
      works for variable names that contain a prime
      works for error messages with suggestions
    when error message was produced by GHC 8.0.1
      extracts a variable name of variable that is not in scope from an error message
      ignores duplicates
      works for variable names that contain a prime
      works for error messages with suggestions
Runner.Example
  mkResult
    returns Equal when output matches
      +++ OK, passed 100 tests.
    ignores trailing whitespace
    with WildCardLine
      matches zero lines
      matches first zero line
      matches final zero line
      matches an arbitrary number of lines
      matches an arbitrary number of lines (quickcheck)
        +++ OK, passed 100 tests.
    with WildCardChunk
      matches an arbitrary line chunk
      matches an arbitrary line chunk at end
      does not match at end
      does not match at start
    when output does not match
      constructs failure message
      constructs failure message for multi-line output
      when any output line contains "unsafe" characters
        uses show to format output lines
      insert caret after last matching character on different lengths
      insert caret after mismatching line for multi-line output
      insert caret after mismatching line with the longest match for multi-line wildcard pattern
      insert caret after longest match for wildcard
      show expanded pattern for long matches
Runner
  report
    when mode is interactive
      writes to stderr
      overwrites any intermediate output
      blank out intermediate output if necessary
    when mode is non-interactive
      writes to stderr
  report_
    when mode is interactive
      writes intermediate output to stderr
      overwrites any intermediate output
      blank out intermediate output if necessary
    when mode is non-interactive
      is ignored
      does not influence a subsequent call to `report`
      does not require `report` to blank out any intermediate output
Run
  doctest
    exits with ExitFailure if at least one test case fails
    prints help on --help
    prints version on --version
    prints error message on invalid option
Util
  convertDosLineEndings
    converts CRLF to LF
    strips a trailing CR
  takeWhileEnd
    returns the longest suffix of elements that satisfy a given predicate

Failures:

  test/ExtractSpec.hs:35:5:
  1) Extract.extract extracts documentation for a top-level declaration
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation for a top-level declaration/"

  test/ExtractSpec.hs:38:5:
  2) Extract.extract extracts documentation from argument list
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from argument list/"

  test/ExtractSpec.hs:41:5:
  3) Extract.extract extracts documentation for a type class function
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation for a type class function/"

  test/ExtractSpec.hs:44:5:
  4) Extract.extract extracts documentation from the argument list of a type class function
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from the argument list of a type class function/"

  test/ExtractSpec.hs:47:5:
  5) Extract.extract extracts documentation from the module header
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from the module header/"

  test/ExtractSpec.hs:50:5:
  6) Extract.extract extracts documentation from imported modules
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from imported modules/"

  test/ExtractSpec.hs:53:5:
  7) Extract.extract extracts documentation from export list
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from export list/"

  test/ExtractSpec.hs:56:5:
  8) Extract.extract extracts documentation from named chunks
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts documentation from named chunks/"

  test/ExtractSpec.hs:59:5:
  9) Extract.extract returns docstrings in the same order they appear in the source
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/returns docstrings in the same order they appear in the source/"

  test/ExtractSpec.hs:62:5:
  10) Extract.extract extracts $setup code
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract/extracts $setup code/"

  test/ExtractSpec.hs:69:5:
  11) Extract, extract (regression tests), works with infix operators
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works with infix operators/"

  test/ExtractSpec.hs:72:5:
  12) Extract, extract (regression tests), works with parallel list comprehensions
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works with parallel list comprehensions/"

  test/ExtractSpec.hs:75:5:
  13) Extract, extract (regression tests), works with list comprehensions in instance definitions
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works with list comprehensions in instance definitions/"

  test/ExtractSpec.hs:78:5:
  14) Extract, extract (regression tests), works with foreign imports
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works with foreign imports/"

  test/ExtractSpec.hs:81:5:
  15) Extract, extract (regression tests), works for rewrite rules
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works for rewrite rules/"

  test/ExtractSpec.hs:84:5:
  16) Extract, extract (regression tests), works for rewrite rules with type signatures
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works for rewrite rules with type signatures/"

  test/ExtractSpec.hs:87:5:
  17) Extract, extract (regression tests), strips CR from dos line endings
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/strips CR from dos line endings/"

  test/ExtractSpec.hs:90:5:
  18) Extract, extract (regression tests), works with a module that splices in an expression from an other module
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works with a module that splices in an expression from an other module/"

  test/ExtractSpec.hs:93:5:
  19) Extract, extract (regression tests), works for type families and GHC 7.6.1
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Extract/extract (regression tests)/works for type families and GHC 7.6.1/"

  test/MainSpec.hs:40:7:
  20) Main.doctest testSimple
       ["TestSimple.Fib"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testSimple/"

  test/MainSpec.hs:44:7:
  21) Main.doctest it-variable
       ["It.Foo"]
       expected: Examples: 5  Tried: 5  Errors: 0  Unexpected output: 0
        but got: Examples: 5  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/it-variable/"

  test/MainSpec.hs:48:7:
  22) Main.doctest it-variable in $setup
       ["It.Setup"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/it-variable in $setup/"

  test/MainSpec.hs:52:7:
  23) Main.doctest failing
       ["Failing.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 1
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/failing/"

  test/MainSpec.hs:56:7:
  24) Main.doctest skips subsequent examples from the same group if an example fails
       ["FailingMultiple.Foo"]
       expected: Examples: 4  Tried: 2  Errors: 0  Unexpected output: 1
        but got: Examples: 4  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/skips subsequent examples from the same group if an example fails/"

  test/MainSpec.hs:60:7:
  25) Main.doctest testImport
       ["TestImport.ModuleA"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testImport/"

  test/MainSpec.hs:64:7:
  26) Main.doctest testCommentLocation
       ["TestCommentLocation.Foo"]
       expected: Examples: 11  Tried: 11  Errors: 0  Unexpected output: 0
        but got: Examples: 11  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testCommentLocation/"

  test/MainSpec.hs:68:7:
  27) Main.doctest testPutStr
       ["TestPutStr.Fib"]
       expected: Examples: 3  Tried: 3  Errors: 0  Unexpected output: 0
        but got: Examples: 3  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testPutStr/"

  test/MainSpec.hs:72:7:
  28) Main.doctest fails on multi-line expressions, introduced with :{
       ["TestFailOnMultiline.Fib"]
       expected: Examples: 2  Tried: 2  Errors: 2  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/fails on multi-line expressions, introduced with :{/"

  test/MainSpec.hs:76:7:
  29) Main.doctest testBlankline
       ["TestBlankline.Fib"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testBlankline/"

  test/MainSpec.hs:80:7:
  30) Main.doctest examples from the same Haddock comment share the same scope
       ["TestCombinedExample.Fib"]
       expected: Examples: 4  Tried: 4  Errors: 0  Unexpected output: 0
        but got: Examples: 4  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/examples from the same Haddock comment share the same scope/"

  test/MainSpec.hs:84:7:
  31) Main.doctest testDocumentationForArguments
       ["TestDocumentationForArguments.Fib"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/testDocumentationForArguments/"

  test/MainSpec.hs:88:7:
  32) Main.doctest template-haskell
       ["TemplateHaskell.Foo"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/template-haskell/"

  test/MainSpec.hs:92:7:
  33) Main.doctest handles source files with CRLF line endings
       ["DosLineEndings.Fib"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/handles source files with CRLF line endings/"

  test/MainSpec.hs:96:7:
  34) Main.doctest runs $setup before each test group
       ["Setup.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/runs $setup before each test group/"

  test/MainSpec.hs:100:7:
  35) Main.doctest skips subsequent tests from a module, if $setup fails
       ["SetupSkipOnFailure.Foo"]
       expected: Examples: 2  Tried: 0  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/skips subsequent tests from a module, if $setup fails/"

  test/MainSpec.hs:105:7:
  36) Main.doctest works with additional object files
       ["WithCbits.Bar"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/works with additional object files/"

  test/MainSpec.hs:109:7:
  37) Main.doctest ignores trailing whitespace when matching test output
       ["TrailingWhitespace.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest/ignores trailing whitespace when matching test output/"

  test/MainSpec.hs:114:7:
  38) Main, doctest as a runner for QuickCheck properties, runs a boolean property
       ["PropertyBool.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/runs a boolean property/"

  test/MainSpec.hs:118:7:
  39) Main, doctest as a runner for QuickCheck properties, runs an explicitly quantified property
       ["PropertyQuantified.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/runs an explicitly quantified property/"

  test/MainSpec.hs:122:7:
  40) Main, doctest as a runner for QuickCheck properties, runs an implicitly quantified property
       ["PropertyImplicitlyQuantified.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/runs an implicitly quantified property/"

  test/MainSpec.hs:126:7:
  41) Main, doctest as a runner for QuickCheck properties, reports a failing property
       ["PropertyFailing.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 1
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/reports a failing property/"

  test/MainSpec.hs:130:7:
  42) Main, doctest as a runner for QuickCheck properties, runs a boolean property with an explicit type signature
       ["PropertyBoolWithTypeSignature.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/runs a boolean property with an explicit type signature/"

  test/MainSpec.hs:134:7:
  43) Main, doctest as a runner for QuickCheck properties, runs $setup before each property
       ["PropertySetup.Foo"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest as a runner for QuickCheck properties/runs $setup before each property/"

  test/MainSpec.hs:139:7:
  44) Main, doctest (module isolation), should fail due to module isolation
       ["ModuleIsolation.TestA","ModuleIsolation.TestB"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 1
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (module isolation)/should fail due to module isolation/"

  test/MainSpec.hs:144:7:
  45) Main, doctest (regression tests), bugfixOutputToStdErr
       ["BugfixOutputToStdErr.Fib"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (regression tests)/bugfixOutputToStdErr/"

  test/MainSpec.hs:148:7:
  46) Main, doctest (regression tests), bugfixImportHierarchical
       ["BugfixImportHierarchical.ModuleA","BugfixImportHierarchical.ModuleB"]
       expected: Examples: 4  Tried: 4  Errors: 0  Unexpected output: 0
        but got: Examples: 4  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (regression tests)/bugfixImportHierarchical/"

  test/MainSpec.hs:152:7:
  47) Main, doctest (regression tests), bugfixMultipleModules
       ["BugfixMultipleModules.ModuleA","BugfixMultipleModules.ModuleB"]
       expected: Examples: 6  Tried: 5  Errors: 0  Unexpected output: 1
        but got: Examples: 6  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (regression tests)/bugfixMultipleModules/"

  test/MainSpec.hs:157:7:
  48) Main, doctest (regression tests), doesn't clash with user bindings of stdout/stderr
       ["LocalStderrBinding.A"]
       expected: Examples: 1  Tried: 1  Errors: 0  Unexpected output: 0
        but got: Examples: 1  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (regression tests)/doesn't clash with user bindings of stdout/stderr/"

  test/MainSpec.hs:161:7:
  49) Main, doctest (regression tests), doesn't get confused by doctests using System.IO imports
       ["SystemIoImported.A"]
       expected: Examples: 2  Tried: 2  Errors: 0  Unexpected output: 0
        but got: Examples: 2  Tried: 0  Errors: 1  Unexpected output: 0

  To rerun use: --match "/Main/doctest (regression tests)/doesn't get confused by doctests using System.IO imports/"

  test/ParseSpec.hs:33:5:
  50) Parse.getDocTests extracts properties from a module
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/extracts properties from a module/"

  test/ParseSpec.hs:41:5:
  51) Parse.getDocTests extracts examples from a module
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/extracts examples from a module/"

  test/ParseSpec.hs:52:5:
  52) Parse.getDocTests extracts examples from documentation for non-exported names
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/extracts examples from documentation for non-exported names/"

  test/ParseSpec.hs:63:5:
  53) Parse.getDocTests extracts multiple examples from a module
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/extracts multiple examples from a module/"

  test/ParseSpec.hs:73:5:
  54) Parse.getDocTests returns an empty list, if documentation contains no examples
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/returns an empty list, if documentation contains no examples/"

  test/ParseSpec.hs:76:5:
  55) Parse.getDocTests sets setup code to Nothing, if it does not contain any tests
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/sets setup code to Nothing, if it does not contain any tests/"

  test/ParseSpec.hs:83:5:
  56) Parse.getDocTests keeps modules that only contain setup code
       uncaught exception: ExitCode
       ExitFailure 1

  To rerun use: --match "/Parse/getDocTests/keeps modules that only contain setup code/"

Randomized with seed 708334994

Finished in 19.5332 seconds
149 examples, 56 failures
Test suite spectests: FAIL
Test suite logged to: dist/test/doctest-parallel-0.1-spectests.log
0 of 2 test suites (0 of 2 test cases) passed.
@martijnbastiaan
Copy link
Owner

Thanks! Yeah, I guess the test files aren't supplied with the tarball. I'll check it out.

@martijnbastiaan martijnbastiaan added the bug Something isn't working label Dec 8, 2021
@martijnbastiaan martijnbastiaan self-assigned this Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants