You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WithAssertionHandler should update r.chain.handler with given handler. For that, we'll need to add new method chain.setHandler.
New methods should have documentation and tests. In tests, we should check that after these calls, request and it's newly created children (i.e. Response, its body, etc) start using new handler to report failures.
For that, we can create a mock reporter, pass it to request using WithReporter or WithAssertionHandler, then perform an assertion that will fail (req.Expect()....) and then check that the mock reporter is in failed state.
The text was updated successfully, but these errors were encountered:
Add two new methods to Request:
WithReporter(reporter) should be equivalent to:
WithAssertionHandler should update r.chain.handler with given handler. For that, we'll need to add new method chain.setHandler.
New methods should have documentation and tests. In tests, we should check that after these calls, request and it's newly created children (i.e. Response, its body, etc) start using new handler to report failures.
For that, we can create a mock reporter, pass it to request using WithReporter or WithAssertionHandler, then perform an assertion that will fail (req.Expect()....) and then check that the mock reporter is in failed state.
The text was updated successfully, but these errors were encountered: