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.
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.