Skip to content

Add descriptive messages for assert statements in tests #416

@aik099

Description

@aik099

I think, that time passed from discovering, that a test have failed to the time, when we know why it failed should be as small as possible.

To ensure that I'm proposing to fill $message parameter value in each of used assert* statement in tests. This will be especially useful for tests, that contain multiple assert statements, like testAdvancedForm.

Example of bad default error message: "Failed asserting, that false is true".

P.S.
We can look at format of assert messages in Symfony test suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions