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
I'm working on an app using Symfony4.1 and I noticed my testsuite becoming incredibly slow with this bundle enabled. Some debugging showed me that the container is initialized multiple times per test, causing the cache to get recreated also.
I refactored my test to use the WebTestCase provided by Symfony rather than the one provided by this bundle. That already helped somewhat. If I disable the bundle completely in bundles.php, the issue vanishes completely.
In the end, the time required for 1 test class with 2 tests drops from 1.5m to 4s.
Preconditions
Symfony 4.1
PHP 7.2
Bundle version 2.0@alpha
Steps to reproduce
Enable bundle using Symfony Flex
Create functional test extending WebTestCase from this bundle
Execute some tests using the client and grab some services from the container in the test
Expected result
Container should not be recompiled every time.
Actual result
Some debug output in Kernel.php shows me that the container is initialized multiple times and the cache warmer is executed also every time.
The text was updated successfully, but these errors were encountered:
Hi all,
I'm working on an app using Symfony4.1 and I noticed my testsuite becoming incredibly slow with this bundle enabled. Some debugging showed me that the container is initialized multiple times per test, causing the cache to get recreated also.
I refactored my test to use the WebTestCase provided by Symfony rather than the one provided by this bundle. That already helped somewhat. If I disable the bundle completely in bundles.php, the issue vanishes completely.
In the end, the time required for 1 test class with 2 tests drops from 1.5m to 4s.
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: