Skip to content

✅ Add Pest testing scaffold#806

Merged
retlehs merged 2 commits intomasterfrom
testing
Mar 8, 2026
Merged

✅ Add Pest testing scaffold#806
retlehs merged 2 commits intomasterfrom
testing

Conversation

@retlehs
Copy link
Copy Markdown
Member

@retlehs retlehs commented Mar 8, 2026

Add Pest testing scaffold

Adds a minimal, ready-to-run Pest setup to Bedrock.

Closes #365

Changes

  • Added pestphp/pest (^4.0) to require-dev
  • Added composer test script
  • Added phpunit.xml.dist with test discovery across tests/
  • Added tests/Pest.php bootstrap and tests/Feature/ExampleTest.php
  • Added composer test step to CI workflow
  • Updated .gitignore for PHPUnit/Pest cache files

Scope

This is intentionally minimal and framework-agnostic — it provides a PHP testing baseline without WordPress core integration test bootstrap or database provisioning.

Docs: roots/docs#570

@retlehs retlehs self-assigned this Mar 8, 2026
retlehs and others added 2 commits March 8, 2026 16:06
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Stale formatting from #800.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@retlehs retlehs merged commit 212b7e8 into master Mar 8, 2026
8 checks passed
@retlehs retlehs deleted the testing branch March 8, 2026 21:09
xelmido pushed a commit to xelmedia/bedrock-headless-zilch that referenced this pull request Apr 1, 2026
* ✅ Add Pest testing scaffold

* 🎨 Format application.php

Stale formatting from roots#800.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add first-class support for PHPUnit

1 participant