TestifyFailureReport Type
Structured, renderer-friendly failure data used across Assert and Check reporting.
This is the common payload behind rendered failure text, JSON output, hint inference, and persisted diagnostic artifacts.
Record fields
| Record Field |
Description
|
Full Usage:
Actual
Field type: string option
|
The rendered actual value or behavior description.
|
|
Structured metadata describing the actual observation.
|
Full Usage:
ActualValue
Field type: string option
|
The raw actual value display when Testify can expose it separately.
|
Full Usage:
Because
Field type: string option
|
An optional explanation of why the failure occurred.
|
Full Usage:
DetailsText
Field type: string option
|
Additional detail text, often including nested or structured mismatch information.
|
Full Usage:
DiffText
Field type: string option
|
Optional diff-oriented text extracted from the failure details.
|
Full Usage:
Expectation
Field type: string option
|
The human-readable expectation description.
|
Full Usage:
Expected
Field type: string option
|
The rendered expected value or behavior description.
|
|
Structured metadata describing the expected observation.
|
Full Usage:
ExpectedValue
Field type: string option
|
The raw expected value display when Testify can expose it separately.
|
Full Usage:
Hints
Field type: string list
|
Explicit and inferred hints associated with the failure.
|
|
The high-level failure category.
|
Full Usage:
Label
Field type: string option
|
An optional user-provided or framework-provided label for the failing test.
|
Full Usage:
NumberOfShrinks
Field type: int option
|
The number of shrink steps performed before the final counterexample, when applicable.
|
Full Usage:
NumberOfTests
Field type: int option
|
The number of generated tests run before the failure, when applicable.
|
Full Usage:
OriginalActual
Field type: string option
|
The original unshrunk actual value text when available.
|
|
Structured metadata for the original actual observation.
|
Full Usage:
OriginalExpected
Field type: string option
|
The original unshrunk expected value text when available.
|
|
Structured metadata for the original expected observation.
|
Full Usage:
OriginalTest
Field type: string option
|
The original unshrunk property test expression when available.
|
Full Usage:
Replay
Field type: string option
|
The replay token for reproducing the failing property run, when available.
|
Full Usage:
ShrunkActual
Field type: string option
|
The final shrunk actual value text when available.
|
|
Structured metadata for the shrunk actual observation.
|
Full Usage:
ShrunkExpected
Field type: string option
|
The final shrunk expected value text when available.
|
|
Structured metadata for the shrunk expected observation.
|
Full Usage:
ShrunkTest
Field type: string option
|
The final shrunk property test expression when available.
|
|
The most relevant recovered source location for the failure.
|
Full Usage:
Summary
Field type: string
|
The main one-line failure summary.
|
Full Usage:
Test
Field type: string option
|
The rendered tested expression when available.
|
testify