typo3-testing

Configure PHPUnit, Playwright, PHPat, and Infection testing for TYPO3 extensions.

33|6|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/dirnbauer/webconsulting-skills --skill typo3-testing-dirnbauer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typo3-testing
Source: https://github.com/dirnbauer/webconsulting-skills/tree/main/skills/typo3-testing
Command: npx skills add https://github.com/dirnbauer/webconsulting-skills --skill typo3-testing-dirnbauer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TYPO3 extensions often suffer from insufficient test coverage, leading to bugs in production. This Skill provides a cohesive testing framework covering unit, functional, architecture, and end-to-end testing to improve reliability and confidence.

Core Features & Use Cases

  • Unit Testing: Validate business logic and utilities with PHPUnit.
  • Functional Testing: Verify TYPO3 DB interactions and repositories using the TYPO3 Testing Framework.
  • E2E & Architecture: Validate user workflows with Playwright and enforce architectural constraints with PHPat.
  • Use cases include ensuring content blocks, controllers, and configurations behave correctly across TYPO3 v13 and v14.

Quick Start

Install and configure the testing tools, then run: vendor/bin/phpunit --testsuite Unit vendor/bin/phpunit --testsuite Functional npx playwright test

Frequently Asked Questions about typo3-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up unit and functional tests for a TYPO3 extension?

Run TYPO3 extension tests using PHPUnit via `vendor/bin/phpunit --testsuite Unit` for business logic and `--testsuite Functional` for database repositories. This validates controllers and content blocks using the TYPO3 Testing Framework.

Can I use Playwright for end-to-end testing in TYPO3?

PHPat enforces architectural constraints in TYPO3 extensions by validating structural dependencies. This prevents architectural drift and maintains maintainable codebases alongside unit and functional test suites.

What's the best way to integrate quality gates and CI for TYPO3 testing?

Infection is used for mutation testing within this TYPO3 testing framework to evaluate test suite effectiveness. It modifies code to ensure tests catch defects, improving reliability and confidence in TYPO3 extension development.

Does this TYPO3 testing framework support both TYPO3 v13 and v14?

This testing framework supports TYPO3 v13 and v14 by providing configuration guidance and tooling for PHPUnit, Playwright, PHPat, and Infection. It ensures reliable quality gates and maintainable test suites across both versions.