master > master: unittests nicht mehr per Default verbose

This commit is contained in:
RD 2021-05-09 20:41:54 +02:00
parent cd21b1f035
commit 813a984257
1 changed files with 6 additions and 1 deletions

View File

@ -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" "./...";
}
################################