Modulehspec-api-2.11.18Haskell2010
Test.Hspec.Api.Format.V1
Contents
Synopsis
- type Format
- data FormatConfig
- data Event
- type Progress
- type Path
- data Location
- newtype Seconds
- data Item
- data Result
- data FailureReason
- value monadic
- value registerFormatter
- value useFormatter
- value liftFormatter
- type SpecWith
- data Config
- value modifyConfig
- Packagehspec-api-2.11.18
- Exports17
- LanguageHaskell2010
- LicenceMIT
- SourceExample.hs
Constructors
FormatConfigformatConfigUseColor :: BoolformatConfigReportProgress :: BoolformatConfigOutputUnicode :: BoolformatConfigUseDiff :: BoolformatConfigDiffContext :: Maybe IntformatConfigExternalDiff :: Maybe (String -> String -> IO ())formatConfigPrettyPrint :: BoolDeprecated: use formatConfigPrettyPrintFunction instead
formatConfigPrettyPrintFunction :: Maybe (String -> String -> (String, String))formatConfigPrintTimes :: BoolformatConfigHtmlOutput :: BoolformatConfigPrintCpuTime :: BoolformatConfigUsedSeed :: IntegerformatConfigExpectedTotalCount :: Int
(CurrentItem, TotalItems) tuple.
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.
Location is used to represent source locations.
Constructors
Instances6Eq, Fractional, Num, Ord, Show, PrintfArg
Eq SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.ClockFractional SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.ClockNum SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.ClockOrd SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.ClockShow SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.ClockPrintfArg SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
Constructors
Instances1Show
Show FailureReasonDefined in hspec-core-2.11.18 · Test.Hspec.Core.Formatters.V1.Monad
Register a formatter
Make a formatter available for use with --format.
Make a formatter available for use with --format and use it by default.
Make a formatter compatible with types from Test.Hspec.Core.Format.
Re-exports
A SpecWith a represents a test or group of tests that require an a
value to run.
In the common case, a Spec is a SpecWith () which requires () and
can thus be executed with hspec.
To supply an argument to SpecWith tests to turn them into Spec, use functions from Test.Hspec.Core.Hooks such as around, before, mapSubject and similar.
Values of this type are created by it, describe and similar.