Regenerate nvim config
This commit is contained in:
16
config/neovim/store/nvim-treesitter/scripts/run_tests.sh
Executable file
16
config/neovim/store/nvim-treesitter/scripts/run_tests.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
|
||||
|
||||
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
||||
cd $HERE/..
|
||||
|
||||
run() {
|
||||
nvim --headless --noplugin -u scripts/minimal_init.lua \
|
||||
-c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
|
||||
}
|
||||
|
||||
if [[ $2 = '--summary' ]]; then
|
||||
## really simple results summary by filtering plenary busted output
|
||||
run tests/$1 2> /dev/null | grep -E '^\S*(Testing|Success|Failed|Errors)\s*:'
|
||||
else
|
||||
run tests/$1
|
||||
fi
|
||||
Reference in New Issue
Block a user