-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactor how the debug is handled #25
Conversation
505c3b9
to
745b6f2
Compare
echo (string) $response->getBody(); | ||
} | ||
|
||
echo "\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo : add some sort of separator ? otherwise it goes
| Request: ...
| Request Content-Type: ....
| Response status: ...
| Response Content-Type: ...
{
...
}
| Request: ...
| Request Content-Type: ....
| Response status: ...
| Response Content-Type: ...
{
...
}
Or maybe another (!) line break... ?
Another thing that is quite bothersome : With passing the so todo : have something like a composition (sub services ?) to add debug possibilities, which would (re)define the |
9c09d2d
to
d071ef6
Compare
To do in a later pass : using Behat's printers instead of doing |
0edff37
to
5cfaf3e
Compare
5cfaf3e
to
f031678
Compare
Fixes #24 : Move the
DebugRest
context into a proper listener@api
to@http
Background
,Scenario
andScenarioOutline
)ScenarioOutline
only the last request is debugged (and not the other ones)--api-debug
into--behapi-debug
(as--debug
is already taken, and was changed thanks to @lunika in rename debug option in full-debug #1)