doctest-0.22.4: Test interactive Haskell examples
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.DocTest.Internal.Run

Synopsis

Documentation

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

Run doctest with given list of arguments.

Example:

>>> doctest ["-iexample/src", "example/src/Example.hs"]
...
Examples: 2  Tried: 2  Errors: 0  Failures: 0

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

If a directory is given, it is traversed to find all .hs and .lhs files inside of it, ignoring hidden entries.

doctestWithRepl :: (String, [String]) -> [String] -> IO () Source #

data Config Source #

Constructors

Config 

Fields

Instances

Instances details
Show Config Source # 
Instance details

Defined in Options

Methods

showsPrec :: Int -> Config -> ShowS

show :: Config -> String

showList :: [Config] -> ShowS

Eq Config Source # 
Instance details

Defined in Options

Methods

(==) :: Config -> Config -> Bool

(/=) :: Config -> Config -> Bool

data Summary Source #

Summary of a test run.

Constructors

Summary 

Fields

Instances

Instances details
Monoid Summary Source #

Sum up summaries.

Instance details

Defined in Runner

Semigroup Summary Source # 
Instance details

Defined in Runner

Methods

(<>) :: Summary -> Summary -> Summary

sconcat :: NonEmpty Summary -> Summary

stimes :: Integral b => b -> Summary -> Summary

Show Summary Source #

Format a summary.

Instance details

Defined in Runner

Methods

showsPrec :: Int -> Summary -> ShowS

show :: Summary -> String

showList :: [Summary] -> ShowS

Eq Summary Source # 
Instance details

Defined in Runner

Methods

(==) :: Summary -> Summary -> Bool

(/=) :: Summary -> Summary -> Bool