Skip to content

Document how to use Docker Compose integration when running tests #35661

@ah1508

Description

@ah1508

According to the documentation (https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.docker-compose), Spring boot execute docker compose up when application starts and docker compose stop when application is shutdown. It works very well when the main method is called.

But it does not work with tests (@SpringBootTest). This forces to execute the docker command manually on a terminal window. If it is intentional the documentation could explain why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions