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.
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.