Safe Haskell | None |
---|
This module contains the runners that take a set of specs, evaluate their examples, and report to a given handle.
Documentation
Create a document of the given specs and write it to stdout.
Exit the program with exitSuccess
if all examples passed, with
exitFailure
otherwise.
hHspec :: Handle -> Specs -> IO SummarySource
Create a document of the given specs and write it to the given handle.
writeReport filename specs = withFile filename WriteMode (\h -> hHspec h specs)
hHspecWithFormat :: Formatter -> Bool -> Handle -> Specs -> IO SummarySource
Create a document of the given specs and write it to the given handle. THIS IS LIKELY TO CHANGE
toExitCode :: Bool -> ExitCodeSource
Summary of a test run.