Packages
testcontainers
2.3.1
2.3.1
2.3.0
2.2.0
2.1.0
2.1.0-rc1
2.0.0
2.0.0-rc3
2.0.0-rc2
2.0.0-rc
1.14.1
1.14.0
1.13.5
1.13.4
1.13.3
1.13.2
1.13.1
1.13.0
1.12.0
1.11.8
1.11.7
1.11.6
1.11.5
1.11.4
1.11.3
1.11.2
1.11.1
1.11.0
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.0
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-beta.1
1.0.0-beta
0.9.3
0.9.2
0.9.1
0.9.0
Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Current section
Files
Jump to
Current section
Files
testcontainers
mix.exs
mix.exs
defmodule TestcontainersElixir.MixProject do
use Mix.Project
@app :testcontainers
@version "2.3.1"
@source_url "https://github.com/testcontainers/testcontainers-elixir"
def project do
[
app: @app,
name: "#{@app}",
version: @version,
description:
"Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.",
elixir: "~> 1.13",
source_url: @source_url,
homepage_url: @source_url,
aliases: aliases(),
deps: deps(),
dialyzer: [plt_add_apps: [:mix]],
package: [
files: ~w(lib docker_engine_api .formatter.exs mix.exs README* LICENSE*),
links: %{"GitHub" => @source_url},
licenses: ["MIT"]
],
test_coverage: [
summary: [threshold: 50],
ignore_modules: [
TestHelper,
Inspect.Testcontainers.TestUser
]
],
elixirc_paths: elixirc_paths(Mix.env())
]
end
def cli do
[preferred_envs: [test: :test, citest: :test, "testcontainers.test": :test]]
end
defp elixirc_paths(:test), do: ["lib", "test/support", "docker_engine_api"]
defp elixirc_paths(_), do: ["lib", "docker_engine_api"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:uniq, "~> 0.6"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:tesla, "~> 1.7"},
{:jason, "~> 1.4"},
{:hackney, "~> 1.20"},
# mysql
{:myxql, "~> 0.4", only: [:dev, :test]},
# postgres
{:postgrex, "~> 0.14", only: [:dev, :test]},
# mongo
{:mongodb_driver, "~> 1.6.2", only: [:dev, :test]},
# redis
{:redix, "~> 1.0", only: [:dev, :test]},
# ceph and minio
{:ex_aws, "~> 2.1", only: [:dev, :test]},
{:ex_aws_s3, "~> 2.0", only: [:dev, :test]},
{:sweet_xml, "~> 0.6", only: [:dev, :test]},
# cassandra
{:xandra, "~> 0.14", only: [:dev, :test]},
# kafka
{:kafka_ex, "~> 0.13", only: [:dev, :test]},
# Zookeeper
{:erlzk, "~> 0.6.2", only: [:dev, :test]},
# EMQX
{:tortoise311, "~> 0.12.0", only: [:dev, :test]},
# Toxiproxy (for fault injection tests)
{:toxiproxy_ex, "~> 2.0", only: [:dev, :test]},
# For watching directories for file changes in mix task
{:fs, "~> 11.4"}
]
end
defp aliases do
[
setup: ["deps.get"],
citest: ["test --exclude flaky --cover"],
"testcontainers.test": ["testcontainers.run test"]
]
end
end