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
Hautelook/AliceBundle provides a helper to repopulate the database after each test when using Panther (they specifically advertise it as "They are particularly helpful [...] when using Panther.": https://github.com/hautelook/AliceBundle#database-testing
It relies on repopulating the database when the kernel is booted up, which usually happens between each test file.
However as soon as we enable the Panther\ServerExtension, the repopulating doesn't happen anymore. I can of course just disable the ServerExtension but I'd lose the speed benefits and interactive debugging.
I get that the whole point of the extension is too keep Chrome alive, and thus not reloading the Client and the Kernel each time.
Maybe my real question is: how to reset the database between each tests when using Panther and the ServerExtension ?
As we all know, we cannot use DAMA/doctrine-test-bundle when using Panther, but the need to clean the database before each test does remain.
AliceBundle is one of the most popular way to write fixtures, it'd be awesome if it could work hand in hand with Panther.
Thanks !
The text was updated successfully, but these errors were encountered:
Hautelook/AliceBundle provides a helper to repopulate the database after each test when using Panther (they specifically advertise it as "They are particularly helpful [...] when using Panther.": https://github.com/hautelook/AliceBundle#database-testing
It relies on repopulating the database when the kernel is booted up, which usually happens between each test file.
However as soon as we enable the Panther\ServerExtension, the repopulating doesn't happen anymore. I can of course just disable the ServerExtension but I'd lose the speed benefits and interactive debugging.
I get that the whole point of the extension is too keep Chrome alive, and thus not reloading the Client and the Kernel each time.
Maybe my real question is: how to reset the database between each tests when using Panther and the ServerExtension ?
As we all know, we cannot use DAMA/doctrine-test-bundle when using Panther, but the need to clean the database before each test does remain.
AliceBundle is one of the most popular way to write fixtures, it'd be awesome if it could work hand in hand with Panther.
Thanks !
The text was updated successfully, but these errors were encountered: