Skip to content
New issue

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

ServerExtension breaks Hautelook/AliceBundle's refresh database #469

Open
Growiel opened this issue Apr 27, 2021 · 3 comments
Open

ServerExtension breaks Hautelook/AliceBundle's refresh database #469

Growiel opened this issue Apr 27, 2021 · 3 comments

Comments

@Growiel
Copy link

Growiel commented Apr 27, 2021

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 !

@bastien70
Copy link
Contributor

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?

@Growiel
Copy link
Author

Growiel commented Nov 3, 2021

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.

@DigitalTimK
Copy link

Have a look at this.
You can deactivate DAMA per test-class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants