diff options
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh index 98b4fa7..5b10a41 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -14,11 +14,17 @@ else (cd "$PLUGINS/plenary.nvim" && git pull) fi +if [ ! -e "$PLUGINS/nvim-treesitter" ]; then + git clone --depth=1 https://github.com/nvim-treesitter/nvim-treesitter.git "$PLUGINS/nvim-treesitter" +else + (cd "$PLUGINS/nvim-treesitter" && git pull) +fi + XDG_CONFIG_HOME=".testenv/config" \ XDG_DATA_HOME=".testenv/data" \ XDG_STATE_HOME=".testenv/state" \ XDG_RUNTIME_DIR=".testenv/run" \ XDG_CACHE_HOME=".testenv/cache" \ nvim --headless -u tests/minimal_init.lua \ - -c "PlenaryBustedDirectory ${1-tests} { minimal_init = './tests/minimal_init.lua' }" + -c "RunTests ${1-tests}" echo "Success" |