Refactored test run script so that you can run a single file
Call it like this: test/run test/plugins/battery.plugin.bats If called without any parameters, all of the tests are run.
This commit is contained in:
8
test/run
8
test/run
@@ -10,4 +10,10 @@ if [ -z "${BASH_IT}" ]; then
|
||||
export BASH_IT
|
||||
fi
|
||||
|
||||
exec $bats_executable ${CI:+--tap} ${test_directory}/{bash_it,completion,install,lib,plugins,themes}
|
||||
if [ -z "$1" ]; then
|
||||
test_dirs=( ${test_directory}/{bash_it,completion,install,lib,plugins,themes} )
|
||||
else
|
||||
test_dirs=( "$1" )
|
||||
fi
|
||||
|
||||
exec $bats_executable ${CI:+--tap} "${test_dirs[@]}"
|
||||
|
||||
Reference in New Issue
Block a user