Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create database migration tests with fake data #135

Open
maxachis opened this issue Jan 18, 2025 · 0 comments
Open

Create database migration tests with fake data #135

maxachis opened this issue Jan 18, 2025 · 0 comments

Comments

@maxachis
Copy link
Collaborator

Currently, we don't have a way to automate comprehensive testing of database migrations.

We have targeted database migration tests, which add a small amount of sample data on areas expected to be impacted by a given migration, but there is always the possibility for unexpected errors to crop up elsewhere.

A way to be more comprehensive is to ensure that data is populated which contains a wider range of permutations for database values -- most notably, having all tables contain at least some data, and tables with enums having rows containing all combinations of enums, which are most likely to be impacted by a migration.

This is an issue of indeterminate importance; it may well be that our current methods are sufficient, and we don't need to go beyond that.

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

No branches or pull requests

1 participant