-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include response body to assertion errors #91
Comments
Sorry for the late response @a-rodin. Are you aware of the debug functionality available in chakram? The documentation can be seen here : http://dareid.github.io/chakram/jsdoc/module-chakram.html#.startDebug. Does this achieve what you are after? |
Thank you for reply @dareid , I was not aware about this debug functionality. However, because In my opinion in most cases it is not necessary to print requests and responses for successful tests because it would add unnecessary noise to |
Hi Daniel,
I think that it might be nice to have an option (or a default) to automatically include responses to assertion error messages. It would make it possible to instantly see what the response actually is instead of going to the test source code and inserting temporary debug output for each failing test.
For now I obtained similar effect by defining
or
I considered to include entire response object instead of only
.body
, but the output in this case appears to me to be too verbose.Thanks
The text was updated successfully, but these errors were encountered: