WPAPI-SwaggerGenerator icon indicating copy to clipboard operation
WPAPI-SwaggerGenerator copied to clipboard

Consider integration tests for your WP REST API endpoints

Open danielbachhuber opened this issue 8 years ago • 1 comments

Hi!

On behalf of Pantheon, I'm writing a tutorial on why integration tests are critical for your WP REST API endpoints, and how you can go about writing them.

Given your use of register_rest_field(), I think you could benefit from reading and applying the tutorial. And, because the tutorial isn't yet published, I'd very much appreciate any constructive criticism you have, so that we can make the tutorial an evergreen resource for the community.

Thanks in advance for your time. Happy to take any questions, comments, etc. you might have in this Github issue, or on the document itself (you'll need to be signed into Dropbox).

danielbachhuber avatar May 11 '16 22:05 danielbachhuber

Yes agreed - I will see what I can do - also happy to accept PR for this too ;)

starfishmod avatar May 13 '16 22:05 starfishmod