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 have a plugin which has tests which works great. However, people started mention me because the migration failed. So that made me think:
should I test my migrations?
why aren't my migrations used as fixture, at least to initialize the table?
Please explain me what I am missing because the fact that migrations are not tested doesn't feel good... If I'm missing nothing we should think about a way to integrate migrations into fixtures...
The text was updated successfully, but these errors were encountered:
There's the possibility to test your migrations... in some way.
You can use the Migrations class which will allow you to run migrations in a non-shell environment. You can see the doc for this class here.
This should allow you to test that your migrations are correctly running in the various environments you are testing your plugin with.
I have a plugin which has tests which works great. However, people started mention me because the migration failed. So that made me think:
Please explain me what I am missing because the fact that migrations are not tested doesn't feel good... If I'm missing nothing we should think about a way to integrate migrations into fixtures...
The text was updated successfully, but these errors were encountered: