Skip to content
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

Open
derekthecool opened this issue Mar 28, 2024 · 0 comments
Open

Does not seem to work on Windows #17

derekthecool opened this issue Mar 28, 2024 · 0 comments

Comments

@derekthecool
Copy link

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

describe("My test test group --", function()
	it("should work", function()
		assert.are.same(1, 1)
	end)
end)

Which should work every time.

Running this command to test from the terminal works for me

 Starting...Scheduling: .\lua\tests\test_spec.lua

  ========================================
  Testing:        D:/Programming/neovim/test_neotest_with_plenary_runner/lua/tests/test_spec.lua
  Success ||      My test test group -- should work

  Success:        1
  Failed :        0
  Errors :        0
  ========================================
     Date      Time    Attr         Size   Compressed  Name
  ------------------- ----- ------------ ------------  ------------------------
  2024-03-27 08:57:41 D....            0            0  test_neotest_with_plenary_runner
  2024-03-27 21:33:14 D....            0            0  test_neotest_with_plenary_runner\lua
  2024-03-27 21:33:14 ....A           23           23  test_neotest_with_plenary_runner\lua\minimal_init.lua
  2024-03-27 08:59:18 D....            0            0  test_neotest_with_plenary_runner\lua\myplugin
  2024-03-27 08:59:18 ....A           40           40  test_neotest_with_plenary_runner\lua\myplugin\init.lua
  2024-03-27 09:00:24 D....            0            0  test_neotest_with_plenary_runner\lua\tests
  2024-03-27 09:00:24 ....A          115           91  test_neotest_with_plenary_runner\lua\tests\test_spec.lua
  ------------------- ----- ------------ ------------  ------------------------
  2024-03-27 21:33:14                178          154  3 files, 4 folders

Here is an image of the test tree which just shows spinning loading bars forever
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant