Packages

TestcontainerEx is an Elixir library for integration testing with containerized services. Start, stop, and monitor Docker, Podman, Minikube, Colima, or Apple Container containers with a unified API. Supports custom containers.

Current section

Files

Jump to
testcontainer_ex lib testcontainer_ex application.ex
Raw

lib/testcontainer_ex/application.ex

defmodule TestcontainerEx.Application do
@moduledoc """
Application callback for TestcontainerEx.
Starts the TestcontainerEx GenServer as part of the supervision tree.
"""
use Application
@impl true
def start(_type, _args) do
children = [
{Task.Supervisor, name: TestcontainerEx.TaskSupervisor},
{TestcontainerEx.Server, name: TestcontainerEx}
]
opts = [strategy: :one_for_one, name: TestcontainerEx.Supervisor]
Supervisor.start_link(children, opts)
end
end