Modulehspec-2.11.18Haskell2010
Test.Hspec.Formatters
Deprecated. Use Test.Hspec.Api.Formatters.V1 instead.
- 5 types
- 25 values
- Packagehspec-2.11.18
- Exports30
- LanguageHaskell2010
- LicenceMIT
- SourceMonad.hs
Output given chunk in red.
Get the used CPU time since the test run has been started.
Get the number of failed examples encountered so far.
Get the list of accumulated failure messages.
Get the number of pending examples encountered so far.
Get the passed real time since the test run has been started.
Get the number of successful examples encountered so far.
Get the total number of examples encountered so far.
Output given chunk in green.
The random seed that is used for QuickCheck.
Set output color to red, run given action, and finally restore the default color.
Set output color to cyan, run given action, and finally restore the default color.
Set output color to yellow, run given action, and finally restore the default color.
Set output color to green, run given action, and finally restore the default color.
Append some output to the report.
The same as write, but adds a newline character.
The function formatException converts an exception to a string.
This is different from show. The type of the exception is included, e.g.:
formatException (toException DivideByZero)"ArithException\ndivide by zero"
For IOExceptions the IOErrorType is included, as well.
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
Instances1Show
Show FailureReasonDefined in hspec-core-2.11.18 · Test.Hspec.Core.Formatters.V1.Monad
Constructors
FormatterheaderFormatter :: FormatM ()exampleGroupStarted :: [String] -> String -> FormatM ()exampleGroupDone :: FormatM ()exampleStarted :: Path -> FormatM ()exampleProgress :: Path -> Progress -> FormatM ()exampleSucceeded :: Path -> String -> FormatM ()exampleFailed :: Path -> String -> FailureReason -> FormatM ()examplePending :: Path -> String -> Maybe String -> FormatM ()failedFormatter :: FormatM ()