hspec-2.8.2: A Testing Framework for Haskell
Safe HaskellNone
LanguageHaskell2010

Test.Hspec.Discover

Description

Warning: This module is used by hspec-discover. It is not part of the public API and may change at any time.

Synopsis

Documentation

type Spec = SpecWith () #

hspec :: Spec -> IO () #

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

Note: hspec handles command-line options and reads config files. This is not always desired. Use runSpec if you need more control over these aspects.

class IsFormatter a where Source #

Instances

Instances details
IsFormatter Formatter Source # 
Instance details

Defined in Test.Hspec.Discover

IsFormatter (IO Formatter) Source # 
Instance details

Defined in Test.Hspec.Discover

describe :: HasCallStack => String -> SpecWith a -> SpecWith a #

The describe function combines a list of specs into a larger spec.

module Prelude