netresearch/typo3-testing-skill / skills/typo3-testing
typo3-testing
FlaggedUse when reproducing defects as failing tests, testing template or rendered output changes, confirming changes on a running TYPO3 instance, or setting up TYPO3 extension tests: unit/functional/E2E, PHPUnit 11-13, mutation testing, final-class mocks (v14), CI matrix across TYPO3 12/13/14.3 LTS, typo3-ci-workflows meta-package, CI failures. Also: transaction rollback, worker crashes, competing requests, testing-framework setup, test matrix, integration/e2e testing, coverage, test generation.
assets/infection.json5
View on GitHub{
// Infection PHP Configuration for TYPO3 Extensions
//
// Run: Build/Scripts/runTests.sh -s mutation
//
// CUSTOMIZATION REQUIRED:
// - Adjust 'excludes' for your extension structure
// - Update the 'minCoveredMsi' threshold as needed
"$schema": "https://raw.githubusercontent.com/infection/infection/0.29.0/resources/schema.json",
// Source code directories: list the Classes root(s), not a hand-picked
// set of subdirectories. Uncovered code is skipped anyway, so the
// scope follows the tests; a hand-picked list falls behind them.
"source": {
"directories": [
"Classes"
],
"excludes": [
// Commonly excluded directories
"Exception",
"DependencyInjection",
// Add extension-specific exclusions:
// "Controller", // If controllers are thin wrappers
// "ViewHelpers", // If viewhelpers are simple
]
},
// Output logs
"logs": {
"text": ".Build/infection/infection.log",
"html": ".Build/infection/infection.html",
"json": ".Build/infection/infection.json",
// GitHub Actions annotation format (optional)
// "github": true,
// Badge generation (optional)
// "badge": { "branch": "main" }
},
// Temporary directory for mutation testing
"tmpDir": ".Build/infection/tmp",
// PHPUnit configuration
"phpUnit": {
"configDir": "Build/phpunit",
"customPath": ".Build/bin/phpunit"
},
// Test framework settings
"testFramework": "phpunit",
"testFrameworkOptions": "--testsuite=Unit",
// Mutators configuration
// @see https://infection.github.io/guide/mutators.html
"mutators": {
"@default": true,
// Disable problematic mutators
"CastString": false, // Often produces equivalent mutations
"UnwrapArrayMerge": false, // Can break array operations
"UnwrapArrayReplace": false, // Can break array operations
// Consider disabling for specific patterns:
// "MethodCallRemoval": false, // If you have logging calls
// "LogicalAnd": false, // If complex boolean logic
},
// Mutation Score Indicator threshold
// Covered MSI = Killed / Mutations in code covered by tests
//
// Since Infection 0.31 code no test covers is not mutated unless
// --with-uncovered is passed, so MSI and Covered MSI are the same
// number and 'minMsi' adds nothing. Gate on 'minCoveredMsi', which
// means the same with and without the flag. Add 'minMsi' only for a
// run with --with-uncovered, where it also counts uncovered code.
"minCoveredMsi": 80,
// Performance settings
"timeout": 10,
"threads": 4
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |