Closed simonschaufi closed 4 years ago
Hi @simonschaufi,
are your tests running with the typo3/testing-framework?
I haven't tried it but I just wanted to ask you anyway why there are 2 frameworks for the same purpose. Should I switch to typo3/testing-framework or what is the advantage of THIS framework?
This testing-framework is able to be used for supporting multiple TYPO3 versions as extensions normally do/want. As far as I know the setUpTestDatabase
code should be the same for both testing frameworks. That's why I asked if you ever tried to run your tests on sqlite with the typo3/testing-framework.
Yes, when I exchange the testing framework then the tests run fine with sqlite.
Hi @simonschaufi,
Would you mind to test the pull request #132 to see if this fixes your tests?
Sure, what about this PR https://github.com/TYPO3/testing-framework/pull/121?
I'm currently not able to spend more time in this support. If this is important for you, please stay with the typo3/testing-framework. I just tried to fix your recommendation to be able to run tests with SQLite
In method getDatabaseConfiguration
the line should look like this:
if ($databaseName || $databaseHost || $databaseUsername || $databasePassword || $databasePort || $databaseSocket || $databaseDriver) {
then it works. Thank you for the quick pr!
@IchHabRecht Thank you very much! :orange_heart:
Hi @simonschaufi,
I just released a new version 5.0.4 with the fix. Thank you for your help and patience.
Since TYPO3 officially supports sqlite databases, this extension should as well.
See https://github.com/TYPO3/testing-framework/pull/79 which implemented this in TYPO3 testing-framework and maybe also https://github.com/TYPO3/testing-framework/pull/121
This command fails because of
setDBinit
configuration. It actually crashes in theinitializeTestDatabase
method.When I set the value to an empty string, I still get an error if 2 following tests are executed with the second iteration in the method
setUpTestDatabase
and the$schemaManager->listDatabases()
call. This is not supported in sqlite: