Reproduced with Spring Framework 5.3.1 (via Spring Boot 2.4.0).
As initially described here and here, nested tests do not work with @DynamicPropertySource.
You can reproduce the issue with this sample Spring Data JPA (2.4.1) repository: https://github.com/fbiville/spring-data-jpa-nested (see README for reproduction one-liners).
As suggested by @wilkinsona here, replacing the annotation with ApplicationContextInitializer works.
Reproduced with Spring Framework 5.3.1 (via Spring Boot 2.4.0).
As initially described here and here, nested tests do not work with
@DynamicPropertySource.You can reproduce the issue with this sample Spring Data JPA (2.4.1) repository: https://github.com/fbiville/spring-data-jpa-nested (see README for reproduction one-liners).
As suggested by @wilkinsona here, replacing the annotation with
ApplicationContextInitializerworks.