Run your Elixir tests in a distributed environment!
Use the default number of nodes (1 master + 4 slaves)
mix test.distributed
Use a specific number of nodes (1 master + n slaves). Note the master is not included in the count.
mix test.distributed --count 7
If available in Hex, the package can be installed
by adding distributed_test
to your list of dependencies in mix.exs
:
def deps do
[{:distributed_test, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/distributed_test.