mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Update run_tests to be more scalable with more test folders added
This commit is contained in:
parent
53ba38327e
commit
0f3c94cf72
1 changed files with 4 additions and 6 deletions
|
|
@ -8,11 +8,9 @@ run() {
|
|||
-c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
|
||||
}
|
||||
|
||||
if [[ $1 = '--summary' ]]; then
|
||||
# really simple results summary by filtering plenary busted output
|
||||
run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
|
||||
elif [[ $1 = '--unit' ]]; then
|
||||
run tests/unit
|
||||
if [[ $2 = '--summary' ]]; then
|
||||
## really simple results summary by filtering plenary busted output
|
||||
run tests/$1 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)\s*:'
|
||||
else
|
||||
run tests/indent/
|
||||
run tests/$1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue