Skip to content

Allow predicates to return failure messages #4

@ezoerner

Description

@ezoerner

When a test fails, the error message includes the data for the input parameters, which is good, but it doesn't show any information about why the predicate failed. Currently the predicate set in suchThat is just a boolean so has no way of contributing text to the error message if it fails. Instead of returning a boolean it could return a value that can be queried for a message in the event of failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions