-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] no tests found #303
Comments
apparently you have to use the nvim-treesitter dependency {
"nvim-neotest/neotest",
event = "LspAttach",
dependencies = {
"nvim-treesitter/nvim-treesitter", -- this adding nvim-treesitter
"haydenmeade/neotest-jest",
"marilari88/neotest-vitest",
"nvim-neotest/neotest-go",
},
config = function()
require "custom.configs.neotest"
end,
init = function(_)
require("core.utils").load_mappings "neotest"
end,
},
|
Loading treesitter on VeryLazy can break neotestIn PR #298 the following line was removed from
As a consequence, For LazyVim, @folke fixed the problem in v10.6.0 Note: For Repro--[[
Loads LazyVim using only the plugins needed for neotest-python(9 plugins)
Steps on linux:
1. create dir ~/.config/repro
2. add this file as ~/.config/repro/init.lua
3. run: "NVIM_APPNAME=repro nvim", and restart
4. run: "NVIM_APPNAME=repro nvim", and use neotest
--]]
local function bootstrap(lazypath)
if not vim.loop.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({
"git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git",
"--branch=stable", lazypath
})
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
end
bootstrap(vim.fn.stdpath("data") .. "/lazy/lazy.nvim")
local lazyvim_tag = "v10.5.0"
-- local lazyvim_tag = "v10.6.0" -- fixed treesitter VeryLazy
local opts_flex = { kw = { "tokyo", "trees", "test", "pyth", "plen" }, override_kw = { "context" } }
local plugins = {
{ "abeldekat/lazyflex.nvim", version = "*", import = "lazyflex.entry.lazyvim", opts = opts_flex },
"folke/tokyonight.nvim",
{ "LazyVim/LazyVim", tag = lazyvim_tag, import = "lazyvim.plugins" },
{ import = "lazyvim.plugins.extras.lang.python" },
{ import = "lazyvim.plugins.extras.test.core" },
}
require("lazy").setup(plugins, {}) |
fyi: this is not just with It might be good to keep something like the below:
Edit: to be fair, this would only help users that use |
Hint: |
Sorry for the late reply to this, I've added back the call for nvim-treesitter in the subprocess on startup |
Closing, feel free to re-open if it's not fixed |
Updating |
Also Receiving No Test Found error. neotest v5.2.5 treesitter lazy option set to false config
|
NeoVim Version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.0-beta3
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "
/home/linuxbrew/.linuxbrew/Cellar/neovim/0.9.4/share/nvim"
Describe the bug
before I updated the neotest plugin, it ran normally in jest test but after updating the latest neotest plugin
no tests found
To Reproduce
Please provide a minimal
init.lua
to reproduce which can be run as the following:You can edit the following example file to include your adapters and other required setup.
Steps to reproduce the behavior:
Please provide example test files to reproduce.
Expected behavior
A clear and concise description of what you expected to happen.
Logs
Additional context
treesitter parser not found but I have installed javascript and I have reinstalled all the plugins, but still the same
no tests found
The text was updated successfully, but these errors were encountered: