ServerExtension breaks Hautelook/AliceBundle's refresh database
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 !
Hello, have you found a solution?
I also use DAMA/doctrine-test-bundle to rollback database transactions between each test, but like you say if using Panther it doesn't work.
Were you able to get around this?
Sadly no. Although I haven't used Alice since (changed company and new one doesn't use it) so I don't know if anything changed.
Have a look at this. You can deactivate DAMA per test-class.