Skip to content

bekoenig/trymigrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

try{migrate}

TDD in database migration using Flyway, SchemaCrawler, Testcontainers and AssertJ.

Inspired by

https://www.red-gate.com/hub/product-learning/flyway/testing-databases-whats-required

https://www.codecentric.de/wissens-hub/blog/testing-your-database-migrations-with-flyway-and-testcontainers

further recommendations

assert database model

<dependency>
    <groupId>io.github.bekoenig</groupId>
    <artifactId>assertj-schemacrawler</artifactId>
    <version>...</version>
    <scope>test</scope>
</dependency>

assert data content

<dependency>
    <groupId>org.assertj</groupId>
    <artifactId>assertj-db</artifactId>
    <version>...</version>
    <scope>test</scope>
</dependency>

About

test extensions for database migrations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •