Java – handles schema changes when handling multiple functional branches

Is there another way or some tool to handle database schema changes in multiple parallel functional branches instead of creating a separate database for each functional branch in development?

Namely Start the database in memory based on some configuration or script and populate it with Dbunit before running the test

This problem is specific to unit testing, but it also applies to UAT

Solution

Have you seen the H2 database engine? If you are using spring, you can try the method recorded here: unit testing JPA with in memory H2 database A quick Google search generated this blog post, indicating that someone must use H2 and Dbunit

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>