{"id":18002848,"url":"https://github.com/am-kantox/test_cluster_task","last_synced_at":"2025-03-26T08:31:18.807Z","repository":{"id":62430410,"uuid":"110117519","full_name":"am-kantox/test_cluster_task","owner":"am-kantox","description":"Run tests in a distributed environment (cluster with several nodes)","archived":false,"fork":false,"pushed_at":"2020-02-05T04:56:46.000Z","size":39,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T12:22:01.335Z","etag":null,"topics":["elixir","elixir-lang","erlang-node","mix","test"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/am-kantox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-09T13:16:41.000Z","updated_at":"2024-05-18T06:14:40.000Z","dependencies_parsed_at":"2022-11-01T20:19:00.198Z","dependency_job_id":null,"html_url":"https://github.com/am-kantox/test_cluster_task","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Ftest_cluster_task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Ftest_cluster_task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Ftest_cluster_task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Ftest_cluster_task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/am-kantox","download_url":"https://codeload.github.com/am-kantox/test_cluster_task/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618752,"owners_count":20645061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","elixir-lang","erlang-node","mix","test"],"created_at":"2024-10-29T23:24:12.772Z","updated_at":"2025-03-26T08:31:18.498Z","avatar_url":"https://github.com/am-kantox.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mix tasks to test and run on several nodes\n\nRun tests in a distributed environment (cluster with several nodes).\n\nThe code is based on the\n[`distributed_test`](https://github.com/sschneider1207/distributed_test)\nby _Sam Schneider_ (credits!)\n\n## Usage\n\n**¡NB!** `empd` must be started to use this functionality.\n\nUse the default number of nodes (1 master + 4 slaves)\n```\nmix test.cluster\n```\n\nUse a specific number of nodes (1 master + n slaves).  Note the master is\nnot included in the count.\n```\nmix test.cluster --count 7\n```\n\n## Setting up github action for CI\n\nThe project that uses `test_cluster_task` should have `epmd` started before running tests. This is a scaffold of how your GH Action might be configured (thanks to https://github.com/actions/setup-elixir)\n\n```yaml\nname: Test\n\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}\n    strategy:\n      matrix:\n        otp: [21.3, 22.2]\n        elixir: [1.9.4]\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-elixir@v1\n        with:\n          otp-version: ${{matrix.otp}}\n          elixir-version: ${{matrix.elixir}}\n      - run: MIX_ENV=ci epmd -daemon\n      - run: MIX_ENV=ci mix deps.get\n      - run: MIX_ENV=ci mix test\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `test_cluster_task` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:test_cluster_task, \"~\u003e 0.3\"}]\nend\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam-kantox%2Ftest_cluster_task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fam-kantox%2Ftest_cluster_task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam-kantox%2Ftest_cluster_task/lists"}