hspec-api-2.11.1: A Testing Framework for Haskell
Stabilitystable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.Api.Format.V2

Description

 
Synopsis

Documentation

type Format = Event -> IO () #

data Event #

Instances

Instances details
Show Event 
Instance details

Defined in Test.Hspec.Core.Format

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

type Progress = (Int, Int) #

type Path = ([String], String) #

A Path describes the location of a spec item within a spec tree.

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

Since: hspec-core-2.0.0

data Location #

Location is used to represent source locations.

Instances

Instances details
Read Location 
Instance details

Defined in Test.Hspec.Core.Example.Location

Show Location 
Instance details

Defined in Test.Hspec.Core.Example.Location

Eq Location 
Instance details

Defined in Test.Hspec.Core.Example.Location

newtype Seconds #

Constructors

Seconds Double 

Instances

Instances details
Num Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

Fractional Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

Show Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

PrintfArg Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

Eq Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

Methods

(==) :: Seconds -> Seconds -> Bool #

(/=) :: Seconds -> Seconds -> Bool #

Ord Seconds 
Instance details

Defined in Test.Hspec.Core.Clock

data Item #

Instances

Instances details
Show Item 
Instance details

Defined in Test.Hspec.Core.Format

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

data Result #

Instances

Instances details
Show Result 
Instance details

Defined in Test.Hspec.Core.Format

monadic :: MonadIO m => (m () -> IO ()) -> (Event -> m ()) -> IO Format #

Register a formatter

registerFormatter :: (String, FormatConfig -> IO Format) -> Config -> Config Source #

Make a formatter available for use with --format.

useFormatter :: (String, FormatConfig -> IO Format) -> Config -> Config Source #

Make a formatter available for use with --format and use it by default.

liftFormatter :: (String, FormatConfig -> IO Format) -> (String, FormatConfig -> IO Format) Source #

Make a formatter compatible with types from Test.Hspec.Core.Format.

Re-exports

type SpecWith a = SpecM a () #

data Config #

modifyConfig :: (Config -> Config) -> SpecWith a #

Since: hspec-core-2.10.0