Stability | unstable |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is an unstable API. Use Test.Hspec.Api.Format.V2 instead.
Synopsis
- type Format = Event -> IO ()
- data FormatConfig = FormatConfig {
- formatConfigUseColor :: Bool
- formatConfigReportProgress :: Bool
- formatConfigOutputUnicode :: Bool
- formatConfigUseDiff :: Bool
- formatConfigDiffContext :: Maybe Int
- formatConfigExternalDiff :: Maybe (String -> String -> IO ())
- formatConfigPrettyPrint :: Bool
- formatConfigPrettyPrintFunction :: Maybe (String -> String -> (String, String))
- formatConfigFormatException :: SomeException -> String
- formatConfigPrintTimes :: Bool
- formatConfigHtmlOutput :: Bool
- formatConfigPrintCpuTime :: Bool
- formatConfigUsedSeed :: Integer
- formatConfigExpectedTotalCount :: Int
- formatConfigExpertMode :: Bool
- defaultFormatConfig :: FormatConfig
- data Event
- type Progress = (Int, Int)
- type Path = ([String], String)
- data Location = Location {}
- newtype Seconds = Seconds Double
- data Item = Item {}
- data Result
- data FailureReason
- monadic :: MonadIO m => (m () -> IO ()) -> (Event -> m ()) -> IO Format
Documentation
data FormatConfig Source #
Since: 2.11.5
FormatConfig | |
|
type Path = ([String], String) Source #
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: 2.0.0
Location
is used to represent source locations.
Location | |
|
Item | |
|
data FailureReason Source #
NoReason | |
Reason String | |
ColorizedReason String | |
ExpectedButGot (Maybe String) String String | |
Error (Maybe String) SomeException |
Instances
Show FailureReason Source # | |
Defined in Test.Hspec.Core.Example showsPrec :: Int -> FailureReason -> ShowS # show :: FailureReason -> String # showList :: [FailureReason] -> ShowS # | |
NFData FailureReason Source # | |
Defined in Test.Hspec.Core.Example rnf :: FailureReason -> () # |