elm-explorations / test / Test.Runner.Failure
The reason a test failed.
type Reason = Custom
| Equality String String
| Comparison String String
| ListDiff (List String) (List String)
| CollectionDiff ({ expected : String, actual : String, extra : List String, missing : List String })
| TODO
| Invalid InvalidReason
The reason a test failed.
Test runners can use this to provide nice output, e.g. by doing diffs on the
two parts of an Expect.equal
failure.
type InvalidReason = EmptyList
| NonpositiveFuzzCount
| InvalidFuzzer
| BadDescription
| DuplicatedName
| DistributionInsufficient
| DistributionBug
The reason a test run was invalid.
Test runners should report these to the user in whatever format is appropriate.