Automattic / Automattic/vip-2016-tdd-plugin

Consider integration tests for your WP REST API endpoints

Open
#1 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hi!

On behalf of [Pantheon](https://pantheon.io/), I'm [writing a tutorial](https://paper.dropbox.com/doc/You-absolutely-need-test-coverage-for-your-WP-REST-API-project-MKvKy9DzoTQ2HYhbyWBxM) 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).

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the linked integration-testing tutorial and inspect where this plugin uses register_rest_field(). The issue does not name files, endpoints, tests, or a concrete completion condition, so the required test scope would need to be clarified before work can begin.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.