Skip to content

Show actual next to expected in yesod tests #1495

@Qwertie-

Description

@Qwertie-

In my test I have
bodyEquals "[{\"name\":\"a\",\"id\":1,\"desc\":null}]"
and while running the test it fails with the error:
Expected body to equal [{"name":"a","id":1,"desc":null}]
That's all fine but after seeing that the next thing I want to know is what was the body if it wasn't that.
Other test systems show the actual next to the expected which saves you having to go back and add a print in to the tests to see what went wrong.

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