Replies: 2 comments 7 replies
-
|
This looks to be the change that breaks things: 413d10b I can understand that some users might have complained that there migrations didn't work but they should have switched away from https://github.com/orchestral/testbench-core/releases/tag/v9.0.9 this goes against the whole point of |
Beta Was this translation helpful? Give feedback.
-
Because most packages developers would and can have different sets of database migrations between tests, this way packages developers can tests the package usage on different behaviours unlike Laravel apps where there's only a single ready to use state. You don't test the application where for example with and without Jetstream install etc |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We use
RefreshDatabasein our test to avoid running the migration from scratch on each test and instead use savepoints/transactions. It appears that since 8.23.0 migrations are now being forced to run for each test similar to howDatabaseMigrationsis intended to work.My guess is that this is a workaround that was made for some people who incorrectly using
RefreshDatabasein combination with SQLite, for Laravel 10 and older this was not supported and would fall back to theDatabaseMigrationsbehavior, but in Laravel 11RefreshDatabasenow works correctly for SQLite. But if some project was actually incompatible with this behavior and expecting behavior similar toDatabaseMigrationsthen they might have experienced things working anymore usingRefreshDatabase.Our test now takes 33 minutes to run in GitHub Action, before that it was 31 seconds, are there any settings that can be made to avoid this behavior?
Beta Was this translation helpful? Give feedback.
All reactions