doctest-0.8.0: Test interactive Haskell examples

Safe HaskellSafe-Infered

Test.DocTest

Synopsis

Documentation

doctest :: [String] -> IO ()Source

Run doctest with given list of arguments.

Example:

>>> doctest ["-iexample/src", "example/src/Example.hs"]
There are 2 tests, with 2 total interactions.
Examples: 2  Tried: 2  Errors: 0  Failures: 0

This can be used to create a Cabal test suite that runs doctest for your project.