function M.run_all_tests()
-- Run all found test files
require("neotest").run.run(vim.fn.getcwd(), true)
-- Open the output panel
require("neotest").output_panel.open()
end
The test suite will run all the unit tests, but it will also result in the following callback:
Error executing luv callback:
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: attempt to call upvalue 'cb' (a boolean value)
stack traceback:
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: in function 'close_task'
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:127: in function 'cb'
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:188: in function 'waiter'
...lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/control.lua:57: in function 'set'
...re/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/init.lua:109: in function 'cb'
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: in function 'close_task'
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:127: in function 'cb'
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:188: in function <...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:187>
If you enable suite to true: eg.
The test suite will run all the unit tests, but it will also result in the following callback: