{"id":21276442,"url":"https://github.com/lawrence-laz/neotest-zig","last_synced_at":"2025-10-13T14:40:19.458Z","repository":{"id":197591953,"uuid":"698948776","full_name":"lawrence-laz/neotest-zig","owner":"lawrence-laz","description":"Test runner for Zig in Neovim using Neotest backend.","archived":false,"fork":false,"pushed_at":"2024-10-24T18:14:12.000Z","size":76,"stargazers_count":27,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-26T03:12:31.399Z","etag":null,"topics":["lua","neotest","neovim","test","zig"],"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/lawrence-laz.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":"2023-10-01T13:29:42.000Z","updated_at":"2024-10-24T18:14:16.000Z","dependencies_parsed_at":"2023-10-05T03:48:44.856Z","dependency_job_id":"7aecf37f-5762-46f1-b14c-831143ec0379","html_url":"https://github.com/lawrence-laz/neotest-zig","commit_stats":null,"previous_names":["lawrence-laz/neotest-zig"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Fneotest-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Fneotest-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Fneotest-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Fneotest-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lawrence-laz","download_url":"https://codeload.github.com/lawrence-laz/neotest-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225708254,"owners_count":17511634,"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":["lua","neotest","neovim","test","zig"],"created_at":"2024-11-21T09:48:59.737Z","updated_at":"2025-10-13T14:40:14.433Z","avatar_url":"https://github.com/lawrence-laz.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neotest Zig ⚡\n\n![Zig v0.14.0](https://img.shields.io/badge/Zig-v0.14-orange?logo=zig)\n![Neovim v0.10](https://img.shields.io/badge/Neovim-v0.10-green?logo=neovim)\n\n[Neotest](https://github.com/nvim-neotest/neotest) test runner for [Zig](https://github.com/ziglang/zig).\n\nhttps://github.com/lawrence-laz/neotest-zig/assets/8823448/9a003d0a-9ba4-4077-aa1b-3c0c90717734\n\n## ⚙️ Requirements\n- [`zig` v0.14 installed](https://ziglang.org/download/) and available in PATH\n    - If you are using `zig` v0.13, then use the tagged `neotest-zig` 1.3.* version.\n- [Neotest](https://github.com/nvim-neotest/neotest#installation)\n- [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter#installation) with [Zig support](https://github.com/maxxnino/tree-sitter-zig)\n\n## 📦 Setup\nInstall \u0026 configure using the package manager of your choice.\nExample using lazy.nvim:\n```lua\nreturn {\n\t\"nvim-neotest/neotest\",\n\tdependencies = {\n\t\t\"lawrence-laz/neotest-zig\", -- Installation\n\t\t\"nvim-lua/plenary.nvim\",\n\t\t\"nvim-treesitter/nvim-treesitter\",\n\t\t\"antoinemadec/FixCursorHold.nvim\",\n\t},\n\tconfig = function()\n\t\trequire(\"neotest\").setup({\n\t\t\tadapters = {\n\t\t\t\t-- Registration\n\t\t\t\trequire(\"neotest-zig\")({\n\t\t\t\t\tdap = {\n\t\t\t\t\t\tadapter = \"lldb\",\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t}\n\t\t})\n\tend\n}\n```\n\n## ⭐ Features\n - Can run tests in individual `.zig` files and projects using `build.zig` \n   - Does not support a mix of individual files and `build.zig`:w\n   - `buil.zig` must have a standard `test` step\n - Exact test filtering\n - Timing all tests individually\n\n## 📄 Logs\nEnabling logging in `neotest` automatically enables logging in `neotest-zig` as well:\n```lua\nrequire(\"neotest\").setup({\n    log_level = vim.log.levels.TRACE,\n    -- ...\n})\n```\nThe logs can be openned by:\n```vim\n:exe 'edit' stdpath('log').'/neotest-zig.log'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawrence-laz%2Fneotest-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawrence-laz%2Fneotest-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawrence-laz%2Fneotest-zig/lists"}