symfonytdd-with-pest
Apply RED-GREEN-REFACTOR with Pest PHP for Symfony; use Foundry factories, functional tests with WebTestCase, verify failures before implementation
When & Why to Use This Skill
This Claude skill automates the Red-Green-Refactor workflow for Symfony applications using Pest PHP. It streamlines the development process by generating functional tests with WebTestCase and leveraging Zenstruck Foundry factories for robust data seeding, ensuring high code quality and reliability through rigorous Test-Driven Development (TDD) practices.
Use Cases
- Feature Implementation: Develop new Symfony features by first writing failing Pest tests and then implementing the minimal code required to pass them.
- Functional Testing: Create comprehensive functional tests using WebTestCase to simulate browser interactions and verify end-to-end application behavior.
- Database Seeding: Utilize Zenstruck Foundry factories to generate realistic and consistent mock data for complex entity relationships during testing.
- Safe Refactoring: Improve existing Symfony codebases with confidence by running Pest test suites to ensure that refactoring doesn't break existing functionality.
| name | symfony:tdd-with-pest |
|---|---|
| description | Use when symfony tdd with pest |
symfony:tdd-with-pest (Micro)
Use when
- Use when symfony tdd with pest
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md