Repository navigation
Add AGENTS.md with local PHPUnit and write-API testing notes - #268
Merged
Merged
Conversation
A Docker MySQL recipe for bin/install-wp-tests.sh, verified from cold containers, and the testing patterns from #267: run tests that can reach wp-comments-post.php as POST, capture die_failure() output through wp_die_ajax_handler, and prove guard tests fail when the guard is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
AGENTS.mdwith notes for coding agents. It points toHACKING.txtfor structure, build, and testing.bin/install-wp-tests.sh, plus two gotchas. A socket ping can pass against the container's temporary first-boot server. The install script's finalmysqladmin createfails after WordPress and the test library are already installed.wp-comments-post.phpas POST, capturedie_failure()output throughwp_die_ajax_handler, and prove a guard test fails when the guard is removed.Testing Instructions
AGENTS.mdfrom a cold container. ExpectOK (89 tests, 155 assertions)onmaster. It passed that way twice on macOS with Docker and no local MySQL client.🤖 Generated with Claude Code