askill
typo3-testing

typo3-testingSafety 95Repository

Use when setting up TYPO3 extension test infrastructure, writing unit/functional/E2E/architecture tests, configuring PHPUnit, testing time-dependent code, mutation testing, mocking dependencies, or configuring CI/CD for TYPO3 extensions.

3 stars
1.2k downloads
Updated 2/20/2026

Package Files

Loading files...
SKILL.md

TYPO3 Testing Skill

Templates, scripts, and references for comprehensive TYPO3 extension testing.

Test Type Selection

TypeUse WhenSpeed
UnitPure logic, no DB, validators, utilitiesFast
FunctionalDB interactions, repositories, controllersMedium
ArchitectureLayer constraints, dependency rules (phpat)Fast
E2E (Playwright)User workflows, browser, accessibilitySlow
IntegrationHTTP client, API mocking, OAuth flowsMedium
FuzzSecurity, parsers, malformed inputManual
CryptoEncryption, secrets, key managementFast
MutationTest quality verification, 70%+ coverageCI/Release

Setup and Running Tests

# Setup
<skill-dir>/scripts/setup-testing.sh [--with-e2e]   # Initialize testing
<skill-dir>/scripts/validate-setup.sh               # Validate existing setup
<skill-dir>/scripts/generate-test.sh <Type> <Class> # Generate test file

# Run tests
Build/Scripts/runTests.sh -s unit          # Unit tests
Build/Scripts/runTests.sh -s functional    # Functional tests
Build/Scripts/runTests.sh -s architecture  # Architecture tests (phpat)
Build/Scripts/runTests.sh -s e2e           # E2E tests (Playwright)
Build/Scripts/runTests.sh -s lint          # Linting
Build/Scripts/runTests.sh -s phpstan       # Static analysis
Build/Scripts/runTests.sh -s mutation      # Mutation testing

After creating or modifying a test, always verify it fails before the fix and passes after. Run the full suite to ensure no regressions.

Scoring Requirements

CriterionRequirement
Unit testsRequired, 70%+ coverage
Functional testsRequired for DB operations
Architecture testsphpat required for full points
PHPStanLevel 10 (max)

Reference Documentation

  • references/unit-testing.md -- UnitTestCase, mocking, FakeClock, assertions
  • references/functional-testing.md -- FunctionalTestCase, CSV fixtures, DB testing
  • references/functional-test-patterns.md -- PHPUnit 10+ migration, container reset
  • references/integration-testing.md -- PSR-18 mocking, OAuth flows
  • references/e2e-testing.md -- Playwright setup, Page Object Model
  • references/ddev-testing.md -- Local-only multi-version matrix, Playwright
  • references/test-runners.md -- runTests.sh customization, Docker orchestration
  • references/architecture-testing.md -- phpat rules, layer constraints
  • references/accessibility-testing.md -- axe-core, WCAG compliance
  • references/fuzz-testing.md -- php-fuzzer, malformed input
  • references/crypto-testing.md -- sodium testing, key management
  • references/mutation-testing.md -- Infection config, MSI interpretation
  • references/performance-testing.md -- timing, memory, throughput
  • references/typo3-v14-final-classes.md -- interface extraction, mock strategies
  • references/javascript-testing.md -- Jest, frontend testing, jQuery-to-native-JS migration pitfalls
  • references/quality-tools.md -- PHPStan, PHP-CS-Fixer, Rector
  • references/ci-cd.md -- GitHub Actions, GitLab CI workflows
  • references/sonarcloud.md -- quality gate configuration
  • references/enforcement-rules.md -- E2E CI rules, DDEV prohibition, troubleshooting
  • references/asset-templates-guide.md -- infrastructure setup, PHPUnit config, quality tools

External Resources


Contributing: https://github.com/netresearch/typo3-testing-skill

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

87/100Analyzed 2/23/2026

Comprehensive TYPO3 testing skill with excellent coverage of multiple test types, clear command references, and extensive reference documentation. Well-structured with test type selection guidance, setup scripts, and external resources. Not internal-only - designed as a reusable skill for any TYPO3 extension project. Minor improvement would be adding more inline examples.

95
90
90
85
80

Metadata

Licenseunknown
Version-
Updated2/20/2026
Publishernetresearch

Tags

apici-cdgithubgithub-actionslintingsecuritytesting