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 property name on failing JSON schema assertions #105

Merged
merged 2 commits into from
Mar 6, 2025

Conversation

francislavoie
Copy link
Contributor

Fixes #104

@W0rma
Copy link
Contributor

W0rma commented Jul 11, 2024

@francislavoie I wonder if the tests could be adjusted to verify that the new logic works as expected.

This can be achieved by adjusting the expected exception messages in https://github.com/francislavoie/module-rest/blob/abc599a9992db4ed2d6f6165a6b3ad8fe901ae89/tests/unit/Codeception/Module/RestTest.php#L715. WDYT?

@francislavoie
Copy link
Contributor Author

Sorry for the wait, added a test @W0rma

@francislavoie
Copy link
Contributor Author

FYI @TavoNiievez just in case this got missed 🙏

@francislavoie
Copy link
Contributor Author

francislavoie commented Mar 6, 2025

@W0rma @TavoNiievez Could we please merge this?

Every time I have schema failures in our tests, we're wasting lots of time to drill down to debug why the schema failed. This would save us so much time if you could merge this 🙏

@TavoNiievez TavoNiievez merged commit abb4f25 into Codeception:master Mar 6, 2025
8 checks passed
@TavoNiievez
Copy link
Member

@francislavoie It seems that the tests are failing now. Can you verify why?

@francislavoie francislavoie deleted the patch-1 branch March 6, 2025 20:31
@francislavoie
Copy link
Contributor Author

Tests are failing on returnCallback but my PR does not touch that.

@TavoNiievez
Copy link
Member

Oh, okay thanks

@W0rma
Copy link
Contributor

W0rma commented Mar 6, 2025

@TavoNiievez #113 should fix the tests.

It would be great if you could also merge #109 and tag a new release as proposed in #112

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.

Get which property failed with seeResponseIsValidOnJsonSchemaString
3 participants