Skip to content
Search

Flyway

lastmod 2018-12-26created 2018-12-261 edits

Flyway can prevent changes to Schema, Index, Key, etc. made in development DBs such as local and alpha from being missed in beta and production DBs. In unit tests, too, you can run the DB DDL history against an In-Memory DB (H2, derby, Hsqldb, etc.) and unit test while keeping the same DB configuration as the remote one.

가끔 단위 테스트를 알파 DB로 연동하여 진행하는 코드들이 있는데요. 단위 테스트는 환경적 요소에 영향을 받으면 안 됩니다. 즉, DB 서버가 연동되지 않아도 단위 테스트는 성공해야 참된 테스트 코드라 할 수 있습니다. Flyway는 이를 가능케 하는 도구입니다.

See also

Favorite site

author Zer0 sitemap