Currently, I am using Postman to test the API that I am developing with express. In this process, I am creating a series of tests. Below is a brief example:
tests["Status code is 200"] = responseCode.code === 200;
// Verifying the expected board
var expected = { _id: 11, name: "board A" };
tests["Board retrieved"] = JSON.stringify(expected) === responseBody;
However, I have noticed that if my tests fail, they do not provide me with any valuable information:
https://i.stack.imgur.com/I040K.png
Does anyone know of a different method to validate the results which will display the expected and actual values like traditional test runners? The only solution I have come up with so far is embedding the information into the test name - which seems like a somewhat inefficient workaround.