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
feat: Driver with JSONPath support #191
base: main
Are you sure you want to change the base?
Conversation
39ac954
to
7057c51
Compare
Great proposal. Thanks. |
The tests seem to fail, could you take a look at that? |
oh snap, yes, i will seg fault 👀 😆 |
0894566
to
9827f7c
Compare
9827f7c
to
bd9b273
Compare
@freekmurze would you mind to just approve another run for the pipeline? i set up a seperate repo with the same pipeline and all phpunit jobs passed: |
Found another issue while testing - need to extend this further |
Implementing JsonPathDriver - resolves #190
With this feature it is possible to have changing values in a JSON snapshot and add regex assertions on those values.
Implementation
JsonDriver
with an optional argument instead of a separate driverExamples
Example 1: Simple Document
The corresponding test code would look like this:
Example 2: json:api
The corresponding test code would look like this: