Skip to content

Commit 3e3536b

Browse files
committed
test: verify Windows child Neovim executable
1 parent 982870b commit 3e3536b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/e2e/dap_spec.lua‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ T["DAP-E2E-03 runs and terminates a hermetic adapter through AstroNvim mappings"
8585
vim.env.ASTRONVIM_E2E_DAP_LOG = %s
8686
vim.env.ASTRONVIM_E2E_DAP_SOURCE = %s
8787
local nvim = vim.env.ASTRONVIM_TEST_NVIM or vim.v.progpath
88+
local probe = vim.system({ nvim, "--headless", "--clean", "-u", "NONE", "+qa" }, { text = true }):wait()
89+
assert(probe.code == 0, ("Unable to launch the child Neovim executable: %%s"):format(vim.inspect(probe)))
8890
dap.adapters.astronvim_fixture = {
8991
type = "executable",
9092
command = nvim,

‎tests/e2e/lsp_spec.lua‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ T["LSP-E2E-01 attaches a real local server, registers a capability, and formats"
2727
local log_path = vim.fs.joinpath(project, "lsp-events.jsonl")
2828
vim.env.ASTRONVIM_E2E_LSP_LOG = log_path
2929
local nvim = vim.env.ASTRONVIM_TEST_NVIM or vim.v.progpath
30+
local probe = vim.system({ nvim, "--headless", "--clean", "-u", "NONE", "+qa" }, { text = true }):wait()
31+
assert(probe.code == 0, ("Unable to launch the child Neovim executable: %%s"):format(vim.inspect(probe)))
3032
vim.lsp.config("astronvim-e2e-lsp", {
3133
cmd = { nvim, "--headless", "-l", server },
3234
root_dir = project,

0 commit comments

Comments
 (0)