Skip to content
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

Stubber should report failed match details #126

Open
Controlix opened this issue Apr 5, 2019 · 2 comments
Open

Stubber should report failed match details #126

Controlix opened this issue Apr 5, 2019 · 2 comments

Comments

@Controlix
Copy link

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
Copy link
Contributor

davesmith00000 commented Apr 5, 2019

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

@Controlix
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants