You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
each has its own test extension in a subfolder Fixtures/test_extension with a matching ext_emconf.php and composer.json
the composer.json does not have a package name (if this is not supported anymore, I will add it)
the test extensions are symlinked via $testExtensionsToLoad
What do you get instead?
When executing the test cases individually, everything works. When executing both in one run (with an empty var/tests/ folder), the test extension from the first test case is symlinked to both test systems.
We run into the same issue. They are not cleaned up between runs. The corresponding setting seems to be expected to be TestClass instead of test case specific.
Our workaround is to write and call this method after parent::setUp() (Mind the hardcoded path which needs adjustment):
/**
* The testing framework doesn't expect the list to change between tests in a single class.
*
* We therefore build our own setup to change extensions for each test.
*/
private function setUpExtensionsToLoad(): void
{
$testExtensions = $this->testExtensionsToLoad;
array_shift($testExtensions);
foreach ($testExtensions as $testExtension) {
$path = $this->getInstancePath() . '/typo3conf/ext/' . basename($testExtension);
unlink($path);
$source = __DIR__ . str_replace('typo3conf/ext/e2_core/Tests/Functional/Service', '', $testExtension);
$success = @symlink($source, $path);
if (!$success) {
throw new Exception(
'Can not link the path ' . $source . ' to ' . $path,
1389969623
);
}
}
}
What are you trying to achieve?
I have the following setup:
Fixtures/test_extension
with a matchingext_emconf.php
andcomposer.json
composer.json
does not have a package name (if this is not supported anymore, I will add it)$testExtensionsToLoad
What do you get instead?
When executing the test cases individually, everything works. When executing both in one run (with an empty
var/tests/
folder), the test extension from the first test case is symlinked to both test systems.How to reproduce the issue?
See above.
I have an example in the branch "broken-extension-linking" of my EXT:migrations: https://github.com/andreaswolf/typo3-ext-migrations/tree/broken-extension-linking
Additional information you would like to provide?
I think the problem is using static info inside
\TYPO3\TestingFramework\Composer\ComposerPackageManager
.Specify some data of the environment
The text was updated successfully, but these errors were encountered: