Open Controlix opened 5 years ago
That's an excellent idea! I'm quite surprised nobody's suggested it before!
I noticed that the full details of the matching failure is already in the response body from the stubber. So I guess it's a small effort to enable some logging of it in one way or another.
When the pact stubber fails to match a request it returns a 598 status code. It would be nice to know what part of the request did not match, like the consumer tests do when interactions don't match. That would help a lot to investigate producer test failures using the stubber.