{"id":31977413,"url":"https://github.com/jfpedroza/neotest-elixir","last_synced_at":"2025-10-14T21:47:17.999Z","repository":{"id":58835746,"uuid":"528326168","full_name":"jfpedroza/neotest-elixir","owner":"jfpedroza","description":"Neotest adapter for Elixir","archived":false,"fork":false,"pushed_at":"2025-01-19T01:43:26.000Z","size":84,"stargazers_count":46,"open_issues_count":10,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-08T15:44:31.052Z","etag":null,"topics":["elixir","exunit","neovim","neovim-plugin","testing","treesitter"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/jfpedroza.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T08:08:36.000Z","updated_at":"2025-07-10T12:40:48.000Z","dependencies_parsed_at":"2023-11-14T02:40:01.178Z","dependency_job_id":"74a63d90-6fcc-4d65-9c0e-53720c23a0c7","html_url":"https://github.com/jfpedroza/neotest-elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfpedroza/neotest-elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfpedroza%2Fneotest-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfpedroza%2Fneotest-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfpedroza%2Fneotest-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfpedroza%2Fneotest-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfpedroza","download_url":"https://codeload.github.com/jfpedroza/neotest-elixir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfpedroza%2Fneotest-elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021374,"owners_count":26087023,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","exunit","neovim","neovim-plugin","testing","treesitter"],"created_at":"2025-10-14T21:47:16.681Z","updated_at":"2025-10-14T21:47:17.983Z","avatar_url":"https://github.com/jfpedroza.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neotest-elixir\n\nNeotest adapter for Elixir\n\n## Installation\n\nUsing packer:\n\n```lua\nuse({\n  \"nvim-neotest/neotest\",\n  requires = {\n    ...,\n    \"jfpedroza/neotest-elixir\",\n  }\n  config = function()\n    require(\"neotest\").setup({\n      ...,\n      adapters = {\n        require(\"neotest-elixir\"),\n      }\n    })\n  end\n})\n```\n\n## Configuration\n\nYou can optionally specify some settings:\n\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-elixir\")({\n      -- The Mix task to use to run the tests\n      -- Can be a function to return a dynamic value.\n      -- Default: \"test\"\n      mix_task = {\"my_custom_task\"},\n      -- Other formatters to pass to the test command as the formatters are overridden\n      -- Can be a function to return a dynamic value.\n      -- Default: {\"ExUnit.CLIFormatter\"}\n      extra_formatters = {\"ExUnit.CLIFormatter\", \"ExUnitNotifier\"},\n      -- Extra test block identifiers\n      -- Can be a function to return a dynamic value.\n      -- Block identifiers \"test\", \"feature\" and \"property\" are always supported by default.\n      -- Default: {}\n      extra_block_identifiers = {\"test_with_mock\"},\n      -- Extra arguments to pass to mix test\n      -- Can be a function that receives the position, to return a dynamic value\n      -- Default: {}\n      args = {\"--trace\"},\n      -- Command wrapper\n      -- Must be a function that receives the mix command as a table, to return a dynamic value\n      -- Default: function(cmd) return cmd end\n      post_process_command = function(cmd)\n        return vim.iter({{\"env\", \"FOO=bar\"}, cmd}):flatten():totable()\n      end,\n      -- Delays writes so that results are updated at most every given milliseconds\n      -- Decreasing this number improves snappiness at the cost of performance\n      -- Can be a function to return a dynamic value.\n      -- Default: 1000\n      write_delay = 1000,\n      -- The pattern to match test files\n      -- Default: \"_test.exs$\"\n      test_file_pattern = \".test.exs$\",\n      -- Function to determine whether a directory should be ignored\n      -- By default includes root test directory and umbrella apps' test directories\n      -- Params:\n      -- - name (string) - Name of directory\n      -- - rel_path (string) - Path to directory, relative to root\n      -- - root (string) - Root directory of project\n      filter_dir = function(name, rel_path, root)\n        return rel_path == \"test\"\n            or rel_path == \"lib\"\n            or vim.startswith(rel_path, 'test/')\n            or vim.startswith(rel_path, 'lib/')\n      end,\n    }),\n  }\n})\n```\n\n`extra_args` are also supported, so you can use them to specify other arguments to `mix test`:\n\n```lua\nrequire(\"neotest\").run.run({vim.fn.expand(\"%\"), extra_args = {\"--formatter\", \"ExUnitNotifier\", \"--timeout\", \"60\"}}))\n```\n\n## Integration with Elixir watchers\n\nThe adapter supports `mix_test_interactive` to watch and run tests. Simply set `mix_task` to `test.interactive`.\n\nCaveats: When you save a file, there won't be any indicator that the tests are running again.\n\n## TODO\n\n- [ ] Add integration with `mix-test.watch`\n\n## Development\n\nIn `tests/sample_proj` there is an Elixir project with to test that the adapter works\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfpedroza%2Fneotest-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfpedroza%2Fneotest-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfpedroza%2Fneotest-elixir/lists"}