-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
assert inline multiline response #50
Comments
it seems
does work.. maybe this should be noted in a example somewhere. my actual use-case is to assert the wohle response against a string 1:1. DX wise something like a unified diff would be helpfull |
for the full picture please see:
and the blackfire run results in
it feels pretty hard to tell where the difference between expected and actual response is and also how to properly read the overall output, because of the huge payloads contained. also it seems there might be a problem regarding escaping newlines and/or escaping of double quotes, maybe also indent spacing. we cannot tell for sure, because we can't figured it out based on our tests or the testoutput. |
the docs at https://blackfire.io/docs/player/index#visiting-a-page-with-visit mention a request notation using a long inline string:
we tried using the very same notation for asserting the response body, but were not able to get a result without a syntax error within the config file.
could you describe a small example on how to
expect body()
using a long multiline response body string?we tried things like
and also tried
.. both dont work
The text was updated successfully, but these errors were encountered: