Skip to content

Add PHPUnit test runner automation example - #404

Merged
jazzsequence merged 2 commits into
WordPress:mainfrom
ekamran:shifteq/add-test-runner-script-example
Aug 16, 2026
Merged

Add PHPUnit test runner automation example#404
jazzsequence merged 2 commits into
WordPress:mainfrom
ekamran:shifteq/add-test-runner-script-example

Conversation

@ekamran

@ekamran ekamran commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an example automation script for the PHPUnit test runner.
  • Shows the expected prepare, test, report, and cleanup sequence.
  • Adds a lock to avoid overlapping scheduled runs and includes a cron example.

Testing

  • Ran git diff --check.
  • Verified the shell example with bash -n.
  • Checked the flow against the current WordPress/phpunit-test-runner README and .env.default.

@vairafiq

vairafiq commented Jul 2, 2026

Copy link
Copy Markdown

Really helpful to have a concrete end to end runner script. The use of flock to prevent overlapping runs, set -u, git pull with fast forward only, propagating the first non zero exit status across report.php and cleanup.php, chmod 700, and the cron example make this a good production ready reference. The terminology cleanups (trunk instead of master, and GitHub casing) are welcome too. One optional thought: the script sources .env and references paths like /home/wptestrunner/, so a short note that these must match the values set earlier in the guide could help first timers, though it is not blocking. LGTM.

@kittenkamala kittenkamala added the WCUS26 Worked on for WordCamp US 2026 Contributor Day label Aug 16, 2026
@kittenkamala kittenkamala moved this from Backlog to In review in Hosting Team WCUS 2026 Aug 16, 2026
@github-project-automation github-project-automation Bot moved this from In review to Can Merge in Hosting Team WCUS 2026 Aug 16, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Approved in WordPress Hosting Team Aug 16, 2026
@jazzsequence
jazzsequence merged commit b730ac9 into WordPress:main Aug 16, 2026
@github-project-automation github-project-automation Bot moved this from Can Merge to Done in Hosting Team WCUS 2026 Aug 16, 2026
@github-project-automation github-project-automation Bot moved this from Approved to Done in WordPress Hosting Team Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs reviewer WCUS26 Worked on for WordCamp US 2026 Contributor Day

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants