Closed MateusTymoniuk closed 7 months ago
Hi @MateusTymoniuk, thanks for reporting the issue and for the reproducer. I'll try to fix it as soon as possible.
The new version has been released, you can try it out.
Hey @tomix26, thanks a lot for the fix! I changed all my tests back using @FlywayTest. Works like a charm now!
Hi!
We've been using zonky to test our repositories and it's been great! Our application uses springboot version 2.7.10, embedded-database-spring-test version 2.4.0 and flyway-core version 7.0.4.
Lately we've started to upgrade to springboot version 3.1.6, and with this, we needed to upgrade the flyway-core lib as well to version 9.22.3. With this update, our tests started to fail, because they couldn't initialize the application, as the following exception was thrown:
This seems to be caused because I use a different path for some test migrations, so my test class includes the
@FlywayTest(locationsForMigrate = "testdata")
annotation, and once it tries to get and execute those migrations, the context thatFlywayWrapper
passes toBaselineMigrationResolver
isnull
.Can you help me find out what the problem is? I wonder if there is any configuration that I'm missing to set, because I had to upgrade major versions for both springboot and flyway so this might be the case.
I've created a sample repository, where I could reproduce the error I was getting, so you can analyse and reproduce it as well.
Here's the link to the repo
Thanks in advance for your time!