Skip to content

Allow internal modules to be tested #87

@martijnbastiaan

Description

@martijnbastiaan

As mentioned in the migration guide, doctest-parallel can only test exported binders:


Screenshot 2024-12-14 at 11-02-12 Migration guide for users coming from doctest · Issue #11 · martijnbastiaan_doctest-parallel


It would be nice if modules could be marked to run in "interpreted mode", i.e.:

  {-# ANN module "doctest-parallel: --interpret" #-}

By copying these internal modules to a temporary directory and using GHCi to interpret them, we could get the best of both worlds: run as many examples as possible against compiled/optimized code, while also being able to run doctests on internal ones. (We don't necessarily have to copy them, but I'm unsure how thread-safe starting multiple GHCi sessions is..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions