Skip to content

Request: allow use of already previous test session Docker containers  #691

Description

@devuo

Context:
Starting Docker containers can take from a few seconds to some minutes depending on the Docker image being used.
The current implementation forcefully kills containers if there is already one running with the same container name. This impedes the ability of setting up a faster test workflow for developers to do so: the re-use of the same container in different test runs.

Proposal:
Allow developers to pass an option like .WithContainerNameReuse("some-container-name") (or other some other option name) that would make Gnomock re-use the container with the given name, instead of killing it and starting a new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions