Behapi
Behapi copied to clipboard
Behat extension for those who want to write acceptances tests for apis
We currently have a lot of duplications for `Request` and `Response` dumpers for the var-dumper (one for basic, one for json). This may need to change.
Implement JSONPath support for json context (see https://github.com/SoftCreatR/JSONPath) To push a bit further would be to support "switching" the fetching of the data from the Json.
Add a step that by default set the method to post and the route for the request to /graphql. Also Json encode the query into the graphQl wrapper.
Support form data support for the "parameters" (will probably though another step than the current "parameter" query).
The README is not enough. Or is it ? :P
Add some tests. :}
Currently migrating our project on PHP 8.0, will behapi natively support it soon ? Thank you
Would be a really nice feature if we could generate code coverage using phpunit code coverage tool : https://github.com/sebastianbergmann/php-code-coverage But from my understanding, since we are hitting the API from...
The psrs were released in last july, so maybe it'd be time to use this in Behapi. But that maybe would introduce bc breaks, so it will be for 0.13...
This would mean a refactoring of things and how the request is handled though. Or I could keep using http-plug / psr-17/ psr-18 things, and see on the discoverable clients...