Open janislaus opened 1 year ago
I have same issue in windows 11, though vscode has no issue.
I have a similar problem on windows, while on linux it works perfectly fine.
FYI everyone it is typically a Windows path issue as well as often you need to point to the .CMD version of the executable if you are doing something like accessing node modules for vitest, jest etc.
I am not sure about python but generally speaking you need to hardcode to your test runner executable with a path like I have below (this is what I use for vitest).
adapters = {
require('neotest-vitest')({
vitestCommand = 'node_modules\\.bin\\vitest.CMD',
})
}
Great plugin! I'm using neotest together with neotest-python. Everything works fine on Ubuntu, but not on Windows.
NeoVim Version
NVIM v0.9.1
Describe the bug Trying to run a test on Windows results in the following log message in neotest.log:It says that the file does not exist, but it definitely does. This is the test I'm trying to run:
The project foo is located at C:\Users\myUserName\projects
This is my neotest configuration:
Expected behavior Neotest does recognize that test_neotest.py is actually a file, in which there is a test.