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

Improve Shell Output When An Error Occurs #10

Merged
merged 4 commits into from
Nov 5, 2022
Merged

Conversation

matthewshirley
Copy link
Owner

This merge request improves the output for when an error occurs so that developers aren't overwhelmed by the

Example

Pact was unable to validate one or more interaction(s):

Interaction Mismatch #1
        Reason:
                Request was not matched (GET /alligators)

        Expected:
                - Expected query parameter 'nice' but was missing
                - Expected query parameter 'hungry' but was missing

Interaction Mismatch #2
        Reason:
                Request was unexpected

        Actual:
                GET /croc

Interaction Mismatch #3
        Reason:
                Request was missing

        Expected:
                GET /alligator

@matthewshirley matthewshirley merged commit 252e623 into main Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant