Aug 31, 2018 · 1 min read
Bonjour Christophe,
Merci pour cet article super intéressant ! Pour ma part plutôt que de créer une définition d’étape dans un contexte Behat, j’utilise Behatch/contexts :
https://github.com/Behatch/contexts
Il permet, entre autres,de valider qu’une réponse JSON respecte le format spécifié dans un fichier JSON Schema:
And the JSON should be valid according to the schema “tests/schemas/your-schema.json”