mock-server/mockserver-client-node

Simplify / control verification errors

Closed this issue · 3 comments

Is it possible to add method that disables or make less descriptive verification errors? I have mocked 20 request and when verification fails console reports from jasmine are not readable becouse of huge amount of text from verificaton errors.

Yes that makes sense, I'll look into doing that.

This has also been added as an enhancement to the main MockServer repo: mock-server/mockserver#397

Once I have updated the documentation of the main website I'll be able to look at implementing this. I have recently slightly improved / simplified the output of headers, cookies and parameters, but I don't think this is enough for what you need.

Do you have any suggestion that could help guide the way I implement this. Perhaps instead of just returning an error message containing all requests it would be easier to return a very succinct error message (i.e. x not found 3 times) and a separate field containing all requests as an array.

new feature requests now prioritised on Trello, so closing issue in GitHub, only bugs or unaccepted feature requests will stay in GitHub, so that new feature backlog can be more effectively managed, see: https://trello.com/c/0CTiajbT/23-simplify-control-verification-errors-for-js-client