Files
watchexec.nvim/run_tests.ps1
T
Stevan Freeborn ef48cd178f chore: replace submodule with bootstrap script for test dependency
Remove the .tests/vendor/plenary.nvim git submodule so Neovim plugin
managers (lazy.nvim, etc.) don't pull it during installation. Instead,
run_tests.ps1 and run_checks.ps1 clone plenary.nvim on demand if it's
not present. The .gitea CI workflow also gets its own bootstrap step.
Add .gitignore to exclude the bootstrapped vendor directory.
2026-07-06 20:19:54 -05:00

10 lines
414 B
PowerShell

$plenaryPath = ".tests/vendor/plenary.nvim"
if (-not (Test-Path $plenaryPath)) {
Write-Host "Bootstrapping plenary.nvim for tests..." -ForegroundColor Yellow
New-Item -ItemType Directory -Path ".tests/vendor" -Force | Out-Null
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim $plenaryPath
}
nvim --headless -c "PlenaryBustedDirectory tests/watchexec/ {minimal_init = 'tests/minimal_init.lua'}"