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

Show raw data for unparseable actuals #882

Open
therealryan opened this issue Aug 2, 2024 · 0 comments
Open

Show raw data for unparseable actuals #882

therealryan opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement New feature or request javascript Pull requests that update Javascript code

Comments

@therealryan
Copy link
Collaborator

When the system under test does something unexpected (e.g.: returning something that isn't json when we expected json) then the test will fail because we can't parse the actual data into the expected message type for a masked and formatted comparison. This behaviour is fine and expected.

In such circumstance the report is a bit unhelpful - by default the report will show the formatted view of the message data, but as we don't have that for the unexpected message content it shows a "No Human data available!" message instead.
While that's technically correct it's easy for the viewer to get the impression that we don't have any data at all, which makes debugging much more difficult.
In truth we do have the data - if you click to the "Content bytes as text" or "Content bytes" views then you can see the unexpected message content.

In cases where we don't have the formatted message but we do have the raw bytes, then we should show the raw data (with a suitable caveat message, something along the lines of "Actual data not parseable, displaying raw content") instead of just throwing up the "No Human data available!" error.

@therealryan therealryan added enhancement New feature or request javascript Pull requests that update Javascript code labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

1 participant