Skip to content

Provide an extension point and types hierarchy for rich assertion failure information #73

@nskvortsov

Description

@nskvortsov

Some test frameworks or test environments can provide more structured information about the failure than a pair of strings (expected/actual). For example, if expected and actual values are stored in text files on disk, then the paths to those files can be included.

Suggested entry point: getAdditionalInfo() method in AssertionFailedError

Types hierarchy can be similar to JUnit's TestSource.
A serializable marker interface AssertionFailedInfo extends Serializable
A set of implementations that can be type-checked in runtime. E.g.

FileComparisonInfo implements AssertionFailedInfo, FileComparisonData

This can also cover some other requests, e.g. #72

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