-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
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 |
Dear contributor, because this pull request seems to be inactive for quite some time now, I've automatically closed it. If you feel this pull request deserves some attention from my human colleagues feel free to reopen it. |
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: