@DynamicPropertySource
to set spring boot properties on integration tests
Startables.deepStart(redis, kafka).join();
to start multiple containers in parallel
- postgres tips: add schema file to init the db
@TestContainers
in class level will start the @Container
fields
- if field is
static
, then it will start only once per test class
- if not `static, then start for each test of the test class
#withReuse(boolean)
to not kill the containers after the tests are finished
- useful for debugging purpose
- experimental feature
- can use the same containers by executing the same test
- can configure the
Network
to simulate chaos tests: