Skip to content

Don't kill/recreate containers on every integration/product test run on local machine #4514

@iirekm

Description

@iirekm
  • it would make fix-run-fix-run... cycle on developer's machine faster; TestContainers slows it down by recreating the containers all the time
  • sometimes it's useful to inspect or modify the container manually (eg what's inside the container after a failed test); the container killing makes it impossible

During GHA build this functionality should be disabled.

It should be possible with withReuse functionality recently added to TestContainers (testcontainers/testcontainers-java#1781 )

The same issue is with product tests, there we probably need to hook into Environment.start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions