ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
107 stars 54 forks source link

Stubber should report failed match details #126

Open Controlix opened 5 years ago

Controlix commented 5 years ago

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.

davesmith00000 commented 5 years ago

That's an excellent idea! I'm quite surprised nobody's suggested it before!

Controlix commented 5 years ago

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.