-
Notifications
You must be signed in to change notification settings - Fork 12
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
Does not seem to work on Windows #17
Comments
Unfortunately even after the recent updates this still does not work on my Windows setup. I'm running neovim version 0.10.2 and Lazy plugin manager shows I have commit 3523adc checked out from the master branch for this plugin. Running the command
And running from the command-line has similar results
So something is still strange with the plugin. I've already tried digging through the source without much success. I want to help resolve the problem but could use Here is my entire configuration for reference {
'nvim-neotest/neotest',
enabled = true,
-- stylua: ignore start
keys = {
{ "<leader>tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
{ "<leader>tT", function() require("neotest").run.run(vim.uv.cwd()) end, desc = "Run All Test Files" },
{ "<leader>tr", function() require("neotest").run.run() end, desc = "Run Nearest" },
{ "<leader>tl", function() require("neotest").run.run_last() end, desc = "Run Last" },
{ "<leader>ts", function() require("neotest").summary.toggle() end, desc = "Toggle Summary" },
{ "<leader>to", function() require("neotest").output.open({ enter = true, auto_close = true }) end, desc = "Show Output" },
{ "<leader>tO", function() require("neotest").output_panel.toggle() end, desc = "Toggle Output Panel" },
{ "<leader>tS", function() require("neotest").run.stop() end, desc = "Stop" },
-- stylua: ignore end
},
dependencies = {
-- Plugin requirements
'nvim-neotest/nvim-nio',
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
'antoinemadec/FixCursorHold.nvim',
-- Test runners
{
'nvim-neotest/neotest-plenary',
-- Working on solving an issue with this plugin right now. It does not work on windows.
-- dev = true,
},
'nvim-neotest/neotest-python',
'vim-test/vim-test',
'Issafalcon/neotest-dotnet',
'sidlatau/neotest-dart',
},
log_level = vim.log.levels.TRACE,
config = function()
require('neotest').setup({
adapters = {
require('neotest-plenary'),
require('neotest-dotnet'),
require('neotest-python'),
require('neotest-dart')({
command = 'flutter',
use_lsp = true,
}),
},
})
vim.keymap.set('n', '<leader>tt', function()
require('neotest').run.run()
end, { silent = true, desc = 'Run neotest' })
end,
}, |
I'm running windows 11 and this does not seem to work for me. I had success with dotnet and dart test plugins using neotest. So I know basic features of neotest are working.
However, there seems to be trouble getting anything to run. Test detection works great, but running the tests and getting output does not work.
I'm running trying to run it for my neovim plugins. I've created a simple simple project to try out this plugin. I'm including those files here for reference.
There is just a single test with these contents
Which should work every time.
Running this command to test from the terminal works for me
Here is an image of the test tree which just shows spinning loading bars forever
I've already started diving into the code and will create a pull request to help compare my work and get more suggestions.
I've found problems with getting the init.lua path and also trying to generate the new path to the run_tests.lua script.
But, even after these fixes I'm still stuck! What could be wrong? I'm not sure where to start debugging next.
The text was updated successfully, but these errors were encountered: