{"id":13494335,"url":"https://github.com/rouge8/neotest-rust","last_synced_at":"2025-03-28T14:31:00.652Z","repository":{"id":50291643,"uuid":"517138122","full_name":"rouge8/neotest-rust","owner":"rouge8","description":"Neotest adapter for Rust, using cargo-nextest.","archived":false,"fork":false,"pushed_at":"2024-12-17T03:38:26.000Z","size":113,"stargazers_count":92,"open_issues_count":8,"forks_count":30,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-17T04:29:56.860Z","etag":null,"topics":["neotest","neovim","neovim-plugin","rust"],"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/rouge8.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-07-23T18:43:31.000Z","updated_at":"2024-12-17T03:46:09.000Z","dependencies_parsed_at":"2023-11-13T22:24:58.586Z","dependency_job_id":"d161a3bb-aca2-4491-af01-09983d0e9611","html_url":"https://github.com/rouge8/neotest-rust","commit_stats":{"total_commits":95,"total_committers":20,"mean_commits":4.75,"dds":0.5684210526315789,"last_synced_commit":"0418811e1e3499b2501593f2e131d02f5e6823d4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouge8%2Fneotest-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouge8%2Fneotest-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouge8%2Fneotest-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rouge8%2Fneotest-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rouge8","download_url":"https://codeload.github.com/rouge8/neotest-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246045847,"owners_count":20714856,"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":["neotest","neovim","neovim-plugin","rust"],"created_at":"2024-07-31T19:01:24.024Z","updated_at":"2025-03-28T14:31:00.246Z","avatar_url":"https://github.com/rouge8.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# neotest-rust\n\n[Neotest](https://github.com/rcarriga/neotest) adapter for Rust, using\n[cargo-nextest](https://nexte.st/).\n\nRequires [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)\nand the parser for Rust.\n\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-rust\")\n  }\n})\n```\n\nIf you wish to give additional arguments to the `cargo nextest`,\nyou can specify the args when initializing the adapter.\n\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-rust\") {\n        args = { \"--no-capture\" },\n    }\n  }\n})\n```\n\nSupports standard library tests, [`rstest`](https://github.com/la10736/rstest),\nTokio's `[#tokio::test]`, and more. Does not support `rstest`'s parametrized\ntests.\n\n## Debugging Tests\n\nCodelldb is the default adapter used for debugging.\nAlternatives can be specified via the `dap_adapter` property during initialization.\n\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-rust\") {\n        args = { \"--no-capture\" },\n        dap_adapter = \"lldb\",\n    }\n  }\n})\n```\n\nSee [nvim-dap](https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation),\nand [rust-tools#debugging](https://github.com/simrat39/rust-tools.nvim/wiki/Debugging) if you are using rust-tools.nvim,\nfor more information.\n\n## Limitations\n\nThe following limitations apply to both running and debugging tests.\n\n- Assumes unit tests in `main.rs`, `mod.rs`, and `lib.rs` are in a `tests`\n  module.\n- Does not support `rstest`'s `#[case]` macro.\n- When running tests for a `main.rs` in an integration test subdirectory (e.g.\n  `tests/testsuite/main.rs`), all tests in that subdirectory will be run (e.g.\n  all tests in `tests/testsuite/`). This is because Cargo lacks the capability\n  to specify a test file.\n\nAdditionally, when debugging tests, no output from failed tests will be captured in the results provided to Neotest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frouge8%2Fneotest-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frouge8%2Fneotest-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frouge8%2Fneotest-rust/lists"}