mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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' }"
|
-c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $1 = '--summary' ]]; then
|
if [[ $2 = '--summary' ]]; then
|
||||||
# really simple results summary by filtering plenary busted output
|
## really simple results summary by filtering plenary busted output
|
||||||
run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
|
run tests/$1 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)\s*:'
|
||||||
elif [[ $1 = '--unit' ]]; then
|
|
||||||
run tests/unit
|
|
||||||
else
|
else
|
||||||
run tests/indent/
|
run tests/$1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue