From b8d3a4536b65522facb67a640f7991ccf4918721 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Mon, 9 Jul 2018 12:57:22 -0400 Subject: [PATCH] Add test script to execute code checks and unit tests --- script/include/run_test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 script/include/run_test diff --git a/script/include/run_test b/script/include/run_test new file mode 100755 index 00000000..4187c2d1 --- /dev/null +++ b/script/include/run_test @@ -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