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

Feature Request: Expected vs Actual Debugging #70

Closed
jarrodparkes opened this issue Dec 4, 2021 · 1 comment · Fixed by #78
Closed

Feature Request: Expected vs Actual Debugging #70

jarrodparkes opened this issue Dec 4, 2021 · 1 comment · Fixed by #78

Comments

@jarrodparkes
Copy link
Collaborator

When running a spec/contract test, it would be extremely beneficial to see the expected (passing) criteria against the actual. This could be shown via a flag, method, etc.

For example:

**Expected**
price: int, nullable

**Actual**
price: int

^^ And if this coincides with a failure, then it is pretty clear what the developer needs to do.

Right now, it is very difficult to grok what goes wrong when a contract test fails. I think this would be a good step in the right direction. Its importance only grows as the expected criteria gets more complex (think a response with dozens of fields).

@jarrodparkes jarrodparkes changed the title Feature Request: Expected versus Actual Debugging Feature Request: Expected vs Actual Debugging Dec 4, 2021
@jarrodparkes
Copy link
Collaborator Author

Screen Shot 2021-12-07 at 10 02 56 AM

Been thinking some more about this. Using a "diff" approach could make this even more concise and helpful

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 a pull request may close this issue.

1 participant