Closed chr-hertel closed 4 weeks ago
Great proposal. Thanks.
The tests seem to fail, could you take a look at that?
oh snap, yes, i will
seg fault 👀 😆
that's pretty weird ... running on ubuntu php8.3 with the same command:
doesn't look like this thing is flaky, so it's most likely my change ... can't wrap my head around it - need to give it another thought later. added some docs though & did a rebase. was easier, ha.
@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: Actions: https://github.com/chr-hertel/json-assert-test/actions/runs/8636697242 PR: https://github.com/chr-hertel/json-assert-test/pull/2
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: