Add test script to execute code checks and unit tests

This commit is contained in:
Devon Mackay 2018-07-09 12:57:22 -04:00
parent 2ba3c68921
commit b8d3a4536b

17
script/include/run_test Executable file
View File

@ -0,0 +1,17 @@
# include/run_test: Execute code checkers and unit tests
# Load test functions
source ./script/include/test_functions.inc.sh
## Set option defaults
# If PYTHON_FILES is not set, give it the default value of "app.py"
if [ -z "${PYTHON_FILES+is_set}" ]; then
PYTHON_FILES="app.py"
fi
## Main
if [ "${RUN_PYTHON_TESTS}" = "true" ]; then
run_python_lint "${PYTHON_FILES}"
run_python_static_analysis "${PYTHON_FILES}"
run_python_unit_tests "${PYTHON_FILES}"
fi