embedded-database-spring-test
embedded-database-spring-test copied to clipboard
A library for creating isolated embedded databases for Spring-powered integration tests.
Would be great to have Spring Boot 3.3 support
I am using zonky embedded-postgres db for my spring boot integration tests as I have SQL queries with arrow (->) operator which only work with a postgres database. There are...
# The background In our application, we have a versioned Flyway migration script that creates a user in all our environments using ```sql CREATE USER a_new_user PASSWORD 'a_new_password' ``` When...
I'm trying to use `@Sql` annotation for initializing the db schema like this: `@Sql(scripts = ["/schema.sql"])` (the code is in Kotlin here) But it seems it is only executed after...
with libraries ```groovy testImplementation 'io.zonky.test:embedded-database-spring-test:2.5.1' testImplementation 'io.zonky.test:embedded-postgres:2.0.7' testImplementation enforcedPlatform('io.zonky.test.postgres:embedded-postgres-binaries-bom:15.7.0') ``` and test classes ```java @DataJpaTest @AutoConfigureEmbeddedDatabase(type = POSTGRES, provider = ZONKY) public abstract class EmbeddedPostgresIntegrationTest { @Autowired protected TestSampleRepository repo;...
Hello, Thank you a lot for your work. I want to use the embedded PostgreSQL database along with flyway migrations, on a SpringBoot application. When I run this test :...
Hi, I am developing an application which uses Spring Data JPA and Postgres DB. Now when writing integration tests, I am struggling how to properly implement the test because I...