We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, in Symfony 3.4, I tried using the memory option in order to make my tests faster but an error occurred:
memory
1) Tests\AppBundle\Controller\DefaultControllerTest::testIndex copy(mydb): failed to open stream: No such file or directory
My test config is the following:
imports: - { resource: config_dev.yml } framework: test: ~ session: storage_id: session.storage.mock_file name: MOCKSESSION profiler: collect: false web_profiler: toolbar: false intercept_redirects: false swiftmailer: disable_delivery: true liip_functional_test: cache_db: sqlite: liip_functional_test.services_database_backup.sqlite doctrine: dbal: default_connection: default connections: default: driver: pdo_sqlite memory: true security: firewalls: main: http_basic: ~
Thank you.
The text was updated successfully, but these errors were encountered:
Can you remove sqlite: liip_functional_test.services_database_backup.sqlite and try again? I don't know if backups and memory: true are compatible.
sqlite: liip_functional_test.services_database_backup.sqlite
memory: true
Sorry, something went wrong.
I would like to keep the cached version because it's handy to just replace the database with all the fixtures.
Is there a way to make this work manually? Thanks.
This issue could be related to this one:
doctrine/dbal#2901
Maybe if the option was added it could work?
No branches or pull requests
Hello, in Symfony 3.4, I tried using the
memory
option in order to make my tests faster but an error occurred:My test config is the following:
Thank you.
The text was updated successfully, but these errors were encountered: