Skip to content
Advertisement

Jooq with flyway and testconteiners creates new container per run

I want to use flyway with testcontainers for jooq generation. For this purpose I have 2 plugins

JavaScript

So, I see that flyway started tc, applied all scripts and then jooq starts its’s own container and tried to generate entities, but there are nothing. Could you please suggest how to handle this?

Advertisement

Answer

You have to start the test container first like this:

JavaScript
Advertisement