hspec-core-2.5.0: A Testing Framework for Haskell

Stabilityprovisional
Safe HaskellNone
LanguageHaskell2010

Test.Hspec.Core.Runner

Contents

Description

 

Synopsis

Running a spec

hspec :: Spec -> IO () Source #

Run given spec and write a report to stdout. Exit with exitFailure if at least one spec item fails.

hspecWith :: Config -> Spec -> IO () Source #

Run given spec with custom options. This is similar to hspec, but more flexible.

hspecResult :: Spec -> IO Summary Source #

Run given spec and returns a summary of the test run.

Note: hspecResult does not exit with exitFailure on failing spec items. If you need this, you have to check the Summary yourself and act accordingly.

hspecWithResult :: Config -> Spec -> IO Summary Source #

Run given spec with custom options and returns a summary of the test run.

Note: hspecWithResult does not exit with exitFailure on failing spec items. If you need this, you have to check the Summary yourself and act accordingly.

Types

data Summary Source #

Summary of a test run.

Constructors

Summary 

type Path = ([String], String) Source #

A Path represents the location of an example within the spec tree.

It consists of a list of group descriptions and a requirement description.

configAddFilter :: (Path -> Bool) -> Config -> Config Source #

Add a filter predicate to config. If there is already a filter predicate, then combine them with ||.