Agent skill

symfony:functional-tests

Write and maintain Symfony functional tests using WebTestCase and TDD (RED/GREEN/REFACTOR). Converts bug reports into failing tests, builds regression-safe behavior, and validates HTTP responses, form submissions, and authorization flows. Use when the user asks to write functional tests, add test coverage, convert a bug into a test, or set up TDD workflow for Symfony controllers and endpoints.

Stars 95
Forks 13

Install this agent skill to your Project

npx add-skill https://github.com/MakFly/superpowers-symfony/tree/main/skills/functional-tests

SKILL.md

Functional Tests (Symfony)

Use when

  • Building regression-safe behavior with TDD/functional/e2e tests.
  • Converting bug reports into executable failing tests.

Default workflow

  1. Write failing test for target behavior and one boundary case.
  2. Implement minimal code to pass.
  3. Refactor while preserving green suite.
  4. Broaden coverage for invalid/unauthorized/not-found paths.

Guardrails

  • Prefer deterministic fixtures/builders.
  • Assert observable behavior, not internal implementation.
  • Keep tests isolated and stable in CI.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • RED/GREEN/REFACTOR trace.
  • Test files changed and executed commands.
  • Coverage and confidence notes.

References

  • reference.md
  • docs/complexity-tiers.md

Didn't find tool you were looking for?

Be as detailed as possible for better results