diff --git a/codego/test.sh b/codego/test.sh index 0de9535..a42bc17 100755 --- a/codego/test.sh +++ b/codego/test.sh @@ -8,6 +8,9 @@ # HILFSMETHODEN ################################ +export TEST_VERBOSE=false # <- true: unittest mit verbose output +export TEST_TIMEOUT="60s" + function call_go() { go $@; } @@ -19,7 +22,9 @@ function check_requirements() { function run_unittests(){ echo -e "\033[1mUNITTESTS\033[0m\n"; - call_go test -v -timeout 60s -count 1 -run "^Test[A-Z].*" "logik" "./..."; + local verbose_opt=""; + ( $TEST_VERBOSE ) && verbose_opt="-v" + call_go test $verbose_opt -timeout $TEST_TIMEOUT -count 1 -run "^Test[A-Z].*" "logik" "./..."; } ################################