diff options
author | kylo252 <[email protected]> | 2021-09-09 18:53:21 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-09 18:53:21 +0200 |
commit | 38f53bf08c974791f3d51e8a9c7efe9373c8ce3a (patch) | |
tree | 3f2d5ff1f55bc6fbddc0259fc59cf64155c29edf /utils | |
parent | ac32f2e64d61291ba4969599827eef515712d5d8 (diff) |
[Feature]: Add some very basic unit-tests (#1369)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bin/test_runner.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/bin/test_runner.sh b/utils/bin/test_runner.sh new file mode 100644 index 00000000..5b46e578 --- /dev/null +++ b/utils/bin/test_runner.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +# TODO: allow running with a minimal_init.lua +if [ -n "$1" ]; then + nvim --headless -u ./init.lua -c "lua require('plenary.busted').run('$1')" +else + nvim --headless -u ./init.lua -c "PlenaryBustedDirectory tests/ { minimal_init = './init.lua' }" +fi |