You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When having a keymap to open the summary window right before running the tests will show the message "No tests found". The second time it does run fine.
To Reproduce
A minimal minimal.lua to reproduce which can be run as the following:
I have tried changing the order of calls to neotest.summary.open() and neotest.run.run(vim.fn.expand('%')) and the tests did run, even at the first try.
To clarify, I have changed the keymap to the following:
My guess as to what is actually causing the issue would be that when the summary opens, neotest starts searching for tests, and if you try to run a test before it's done searching you won't be able to. However, that restriction does not seem necessary as one can call neotest.run.run(...) even with the summary closed and the tests will run.
NeoVim Version
Describe the bug
When having a keymap to open the summary window right before running the tests will show the message "No tests found". The second time it does run fine.
To Reproduce
A minimal
minimal.lua
to reproduce which can be run as the following:Steps to reproduce the behavior:
tests/unit/client/event_spec.lua
in the neotest repo.<leader>ta
.Expected behavior
Expected to have neotest run all the tests in the test file.
Logs
neotest.log
The text was updated successfully, but these errors were encountered: