master > master: unittests nicht mehr per Default verbose
This commit is contained in:
parent
cd21b1f035
commit
813a984257
@ -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" "./...";
|
||||
}
|
||||
|
||||
################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user