From 37aacfbfb688f0971708d22d760940399ba8d2e1 Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Sun, 25 Oct 2020 17:26:51 -0400 Subject: [PATCH] Create initial main test script --- tests/test.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 tests/test.sh diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..0b3d67d --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +#4214!/usr/bin/env ./libs/bats/bin/bats +### + # Entry point for running unittests. + ## + + +# Ensure script location is consistent, regardless of terminal calling location. +cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + + +# Variables. +text_reset="\033[0m" +text_purple="\033[0;35m" + + +# Run Directory Function tests. +echo "" +echo -e "Running ${text_purple}Directory Function${text_reset} tests." + +echo -e "Finished ${text_purple}Directory Function${text_reset} Tests." +echo "" + + +# Run User Function tests. +echo "" +echo -e "Running ${text_purple}User Function${text_reset} tests." + +echo -e "Finished ${text_purple}User Function${text_reset} tests." +echo "" + + +# Run Text Function tests. +echo "" +echo -e "Running ${text_purple}Text Function${text_reset} tests." + +echo -e "Finished ${text_purple}Text Function${text_reset} tests." +echo "" + + +# Run Display Function tests. +echo "" +echo -e "Running ${text_purple}Display Function${text_reset} tests." + +echo -e "Finished ${text_purple}Display Function${text_reset} tests." +echo "" -- GitLab