Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Summary = Summary {}
- data Report a = Report {
- reportTests :: !TestCount
- reportDiscards :: !DiscardCount
- reportStatus :: !a
- data Progress
- data Result
- = Failed !FailureReport
- | GaveUp
- | OK
- data FailureReport = FailureReport {
- failureSize :: !Size
- failureSeed :: !Seed
- failureShrinks :: !ShrinkCount
- failureAnnotations :: ![FailedAnnotation]
- failureLocation :: !(Maybe Span)
- failureMessage :: !String
- failureDiff :: !(Maybe Diff)
- failureFootnotes :: ![String]
- data FailedAnnotation = FailedAnnotation {
- failedSpan :: !(Maybe Span)
- failedValue :: !String
- newtype ShrinkCount = ShrinkCount Int
- newtype TestCount = TestCount Int
- newtype DiscardCount = DiscardCount Int
- newtype PropertyCount = PropertyCount Int
- data Style
- data Markup
- = WaitingIcon
- | WaitingHeader
- | RunningIcon
- | RunningHeader
- | ShrinkingIcon
- | ShrinkingHeader
- | FailedIcon
- | FailedHeader
- | GaveUpIcon
- | GaveUpHeader
- | SuccessIcon
- | SuccessHeader
- | DeclarationLocation
- | StyledLineNo !Style
- | StyledBorder !Style
- | StyledSource !Style
- | AnnotationGutter
- | AnnotationValue
- | FailureArrows
- | FailureGutter
- | FailureMessage
- | DiffPrefix
- | DiffInfix
- | DiffSuffix
- | DiffSame
- | DiffRemoved
- | DiffAdded
- | ReproduceHeader
- | ReproduceGutter
- | ReproduceSource
- renderProgress :: MonadIO m => Maybe UseColor -> Maybe PropertyName -> Report Progress -> m String
- renderResult :: MonadIO m => Maybe UseColor -> Maybe PropertyName -> Report Result -> m String
- renderSummary :: MonadIO m => Maybe UseColor -> Summary -> m String
- renderDoc :: MonadIO m => Maybe UseColor -> Doc Markup -> m String
- ppProgress :: MonadIO m => Maybe PropertyName -> Report Progress -> m (Doc Markup)
- ppResult :: MonadIO m => Maybe PropertyName -> Report Result -> m (Doc Markup)
- ppSummary :: MonadIO m => Summary -> m (Doc Markup)
- fromResult :: Result -> Summary
- mkFailure :: Size -> Seed -> ShrinkCount -> Maybe Span -> String -> Maybe Diff -> [Log] -> FailureReport
Report
A summary of all the properties executed.
A report on a running or completed property test.
Report | |
|
The status of a running property test.
The status of a completed property test.
In the case of a failure it provides the seed used for the test, the number of shrinks, and the execution log.
data FailureReport Source #
FailureReport | |
|
data FailedAnnotation Source #
FailedAnnotation | |
|
newtype ShrinkCount Source #
The numbers of times a property was able to shrink after a failing test.
The number of tests a property ran successfully.
newtype DiscardCount Source #
The number of tests a property had to discard.
newtype PropertyCount Source #
The number of properties in a group.
renderProgress :: MonadIO m => Maybe UseColor -> Maybe PropertyName -> Report Progress -> m String Source #
renderResult :: MonadIO m => Maybe UseColor -> Maybe PropertyName -> Report Result -> m String Source #
ppProgress :: MonadIO m => Maybe PropertyName -> Report Progress -> m (Doc Markup) Source #
fromResult :: Result -> Summary Source #
Construct a summary from a single result.