Behat / WebApiExtension

Behat extension to test web APIs
http://extensions.behat.org
MIT License
111 stars 114 forks source link

add assertion for json subset #13

Closed dready closed 5 years ago

dready commented 10 years ago

Although you added the theResponseShouldContainJson Step you removed the subset part.

While testing against a GET all Elements of an API i tend to check if part of the Elements i expect are there. When i get Date or Times they can differ between the tests and that is really annoying.

With this approach you may test if part of the Data you require is present.