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/FunctionalTestsBootstrap.php
View on GitHub<?php
declare(strict_types=1);
/**
* Bootstrap for TYPO3 Extension Functional Tests
*
* Place this file at Tests/Functional/Bootstrap.php
* Reference in Build/phpunit/FunctionalTests.xml bootstrap attribute.
*
* This bootstrap initializes the TYPO3 testing framework for functional tests.
* It creates necessary directories and prepares the test environment.
*/
call_user_func(static function (): void {
// Locate TYPO3 testing framework
$testbaseClass = 'TYPO3\\TestingFramework\\Core\\Testbase';
if (!class_exists($testbaseClass)) {
// Try to load via composer autoload
$autoloadLocations = [
dirname(__DIR__, 2) . '/.Build/vendor/autoload.php',
dirname(__DIR__, 4) . '/vendor/autoload.php',
];
foreach ($autoloadLocations as $location) {
if (file_exists($location)) {
require_once $location;
break;
}
}
}
if (!class_exists($testbaseClass)) {
throw new RuntimeException(
'TYPO3 TestingFramework not found. Run "composer require --dev typo3/testing-framework".'
);
}
$testbase = new \TYPO3\TestingFramework\Core\Testbase();
// Define original root path (extension root)
$testbase->defineOriginalRootPath();
// Create necessary directories for test execution
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/tests');
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/transient');
// Optional: Set default timezone
date_default_timezone_set('UTC');
});
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 |