Switch from an in-memory HSQLDB to MariaDB during integration tests #57
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "testcontainers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently our integration tests run against an in-memory HSQLDB whose schema is created by Hibernate based on our JPA annotations. This has differences from the MariaDB schema created by our Flyway migrations. It is also a completely different database engine so who knows what other differences there are.
This proposal changes this so that it will instead use Testcontainers to spin up a MariaDB Docker container that then has the Flyway migrations ran before being used in tests.
Pros:
NOT NULL
constraints, foreign keys, and so on)Cons:
It's okay that it takes longer to test with testcontainers.
👍