Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Halbronn committed May 21, 2024
1 parent a270185 commit 0d1d8d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/test-harness/src/launchNeovimAndRunTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ export async function launchNeovimAndRunTests(extensionTestsPath: string) {

// testing normal nvim startup
//https://stackoverflow.com/questions/3025615/is-there-a-vim-runtime-log

//const { status, signal, error } = cp.spawnSync(cli, [`-V9`], {
const { status, signal, error } = cp.spawnSync(cli, [`--headless`], {
/*
const { status, signal, error } = cp.spawnSync(cli, [`-V9`], {
encoding: "utf-8",
stdio: "inherit",
env: {
Expand All @@ -154,15 +153,16 @@ export async function launchNeovimAndRunTests(extensionTestsPath: string) {
console.log(`Exiting early`);
process.exit(0);
*/

const waitLuaFile = `${getCursorlessRepoRoot()}/packages/test-harness/src/config/wait.lua`;
// const nvim_process = cp.spawn(cli, [`-V25${vimLogName}`], {
// https://neovim.io/doc/user/starting.html#--headless
// XXX - this works and avoids hanging on CI but we can't see the nvim logs
const nvim_process = cp.spawn(cli, [`--headless`], {
// xxx on CI, this does not work and does not show any of the vim logs
// stdio: "inherit",
// shell: true,
stdio: "inherit",
shell: true,
// XXX = testing -Es locally seems to exit nvim after running the script and it exits too fast so won't work on CI either
// "C:\Program Files\Neovim\bin\nvim.exe" -Es -u C:\path\to\cursorless\packages\test-harness\src\config\init_ced.lua
// const nvim_process = cp.spawn(cli, [`-Es`], {
Expand Down

0 comments on commit 0d1d8d5

Please sign in to comment.