aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run_tests.sh
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-11-20 15:14:09 +0100
committerStephan Seitz <stephan.seitz@fau.de>2021-11-24 17:29:55 +0100
commit0f3c94cf7237f8d0ba613666394e248d1947de77 (patch)
tree755111e63073fd809a4ca03590fa7f3e293a3e7a /scripts/run_tests.sh
parentAdd highlight tests (diff)
downloadnvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar.gz
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar.bz2
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar.lz
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar.xz
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.tar.zst
nvim-treesitter-0f3c94cf7237f8d0ba613666394e248d1947de77.zip
Update run_tests to be more scalable with more test folders added
Diffstat (limited to 'scripts/run_tests.sh')
-rwxr-xr-xscripts/run_tests.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh
index 2447bd4c1..4db68190c 100755
--- a/scripts/run_tests.sh
+++ b/scripts/run_tests.sh
@@ -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