1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Fix tests

This commit is contained in:
V13Axel 2024-02-19 13:01:34 -05:00
parent 3931d9ba55
commit c8335eda8d
2 changed files with 12 additions and 1 deletions

View file

@ -1,6 +1,16 @@
#!/bin/bash
tempfile=".test_output.tmp"
# Create packpath directory
mkdir -p packpath
# Need to clone these plugins to run tests:
git -C packpath/pack/manual/opt/plenary.nvim pull || git clone https://github.com/nvim-lua/plenary.nvim.git ./packpath/pack/manual/opt/plenary.nvim
git -C packpath/pack/manual/opt/neotest pull || git clone https://github.com/nvim-neotest/neotest.git ./packpath/pack/manual/opt/neotest
git -C packpath/pack/manual/opt/neotest-plenary pull || git clone https://github.com/nvim-neotest/neotest-plenary.git ./packpath/pack/manual/opt/neotest-plenary
git -C packpath/pack/manual/opt/nvim-treesitter pull || git clone https://github.com/nvim-treesitter/nvim-treesitter.git ./packpath/pack/manual/opt/nvim-treesitter
# Run tests
if [[ -n $1 ]]; then
nvim --headless --noplugin -u specs/minimal_init.vim -c "PlenaryBustedFile $1" | tee "${tempfile}"
else

View file

@ -1,5 +1,6 @@
set packpath=./packpath
set rtp+=.
set rtp+=../plenary.nvim
set rtp+=./packpath/plenary.nvim
packadd! plenary.nvim
packadd! neotest
packadd! neotest-plenary