Currently we start a Postgres container in TestContainerSuite
this container is not used by the tests as the TestPropertyProvider interface requires the test lifecycle to be Lifecycle.PER_CLASS (which this is not)
Instead all the test properties files specify a Test Containers URL and driver so each test starts a new container.
We can improve this situation by using the Micronaut test-resources plugin.
This will start a single postgres container which will be used by all the tests
A quick POC reduces the test time from almost 5 minutes to just over 2
Currently we start a Postgres container in
TestContainerSuite
TestPropertyProvider
interface requires the test lifecycle to beLifecycle.PER_CLASS
(which this is not)We can improve this situation by using the Micronaut
test-resources
plugin.A quick POC reduces the test time from almost 5 minutes to just over 2