mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
scripts: print test results summary with --summary
This commit is contained in:
parent
975ef08616
commit
db1b6dc1cb
1 changed files with 11 additions and 2 deletions
|
|
@ -3,5 +3,14 @@
|
||||||
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
||||||
cd $HERE/..
|
cd $HERE/..
|
||||||
|
|
||||||
nvim --headless --noplugin -u scripts/minimal_init.lua \
|
run() {
|
||||||
-c "PlenaryBustedDirectory lua/tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
|
nvim --headless --noplugin -u scripts/minimal_init.lua \
|
||||||
|
-c "PlenaryBustedDirectory lua/tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 = '--summary' ]]; then
|
||||||
|
# really simple results summary by filtering plenary busted output
|
||||||
|
run 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
|
||||||
|
else
|
||||||
|
run
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue