hspec-1.2.0: Behavior Driven Development for Haskell

Safe HaskellSafe-Infered

Test.Hspec.Runner

Contents

Description

This module contains the runners that take a set of specs, evaluate their examples, and report to a given handle.

Synopsis

Documentation

type Specs = [Spec]Source

A list of specs.

hspec :: Specs -> IO ()Source

Create a document of the given specs and write it to stdout.

Exit the program with exitSuccess if all examples passed, with exitFailure otherwise.

hspecB :: Specs -> IO BoolSource

Create a document of the given specs and write it to stdout.

Return True if all examples passed, False 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

data Summary Source

Summary of a test run.

Constructors

Summary 

Deprecated functions