Giter Club home page Giter Club logo

distributed_test's Introduction

DistributedTest

Run your Elixir tests in a distributed environment!

Usage

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

Installation

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.

distributed_test's People

Contributors

jschneider1207 avatar

Stargazers

Niranjan Anandkumar avatar Dmitriy Pertsev avatar Patrick Cieplak avatar Ben Smith avatar Aleksei Matiushkin avatar Alexey Mikhaylov avatar Jean-Samuel Aubry-Guzzi avatar Maciej Kaszubowski avatar Victor Borja avatar

Watchers

Maciej Kaszubowski avatar

Forkers

am-kantox

distributed_test's Issues

mix test fails

When I try to run the tests for distributed_test locally I get the following:

mix test

14:56:15.553 [info]  Protocol 'inet_tcp': register/listen error: econnrefused



  1) test nodes are stopped and started at will (DistributedEnvTest)
     test/distributed_env_test.exs:4
     ** (EXIT from #PID<0.155.0>) :not_alive



Finished in 0.04 seconds
1 test, 1 failure

Randomized with seed 510228

14:56:15.570 [error] Task #PID<0.163.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

14:56:15.570 [error] Task #PID<0.164.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

14:56:15.571 [error] Task #PID<0.165.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

14:56:15.571 [error] Task #PID<0.166.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

14:56:15.571 [error] Task #PID<0.167.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

14:56:15.572 [error] Task #PID<0.168.0> started from #PID<0.155.0> terminating
** (stop) :not_alive
    (stdlib) slave.erl:198: :slave.start/5
    (distributed_test) lib/distributed_env.ex:32: DistributedEnv.spawn_slave/1
    (elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<6.14668645/0 in DistributedEnv.spawn_slaves/1>
    Args: []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.