wemake-services / django-test-migrations

Test django schema and data migrations, including migrations' order and best practices.

Home Page:https://pypi.org/project/django-test-migrations/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add possibility to run tests against all django supported DB engines

skarzi opened this issue · comments

Our library is closely connected with databases, so it will be really nice to have tests that run on each database engine supported by Django (especially when #91 will be merged), so I'm opening this issue to open some discussion about adding other database engines to our CI

Great idea!

After quick research I see 2 solutions:

Then we can parametrize our testing app settings with some envs to use proper DB engine.

Do you think we should extend our test matrix with DB engines or just add single includes like we did with django master?

Single include is fine. Otherwise, we would end up with lots and lots of tests.
By the way, which method is easier in your opinion: docker-compose or github jobs?

Personally I think docker-compose approach can be better, because it will be easier to quickly setup DBs locally, just docker-compose up mysql-db and tweaking some envs/settings values and we can run tests or investigate something using any DB engine