github.com/weaviate/weaviate@v1.24.6/test/integration/run.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 function echo_yellow() { 6 yellow='\033[0;33m' 7 nc='\033[0m' 8 echo -e "${yellow}${*}${nc}" 9 } 10 11 includeslow=false 12 13 for arg in "$@"; do 14 if [[ $arg == --include-slow ]]; then 15 includeslow=true 16 shift 17 fi 18 done 19 20 tags=integrationTest 21 if [ $includeslow = true ]; then 22 echo "Found --include-slow flag, running all tests, including the slow ones" 23 tags="$tags,integrationTestSlow" 24 else 25 echo "Found no --include-slow flag, skipping the slow ones" 26 fi 27 28 echo_yellow "Run the regular integration tests with race detector ON" 29 go test -count 1 -timeout 3000s -coverpkg=./adapters/repos/... -coverprofile=coverage-integration.txt -race -tags=$tags "$@" ./adapters/repos/... 30 echo_yellow "Run the !race integration tests with race detector OFF" 31 go test -count 1 -coverpkg=./adapters/repos/... -tags=$tags "$@" -run Test_NoRace ./adapters/repos/... 32 echo_yellow "Run the classification integration tests with race detector ON" 33 go test -count 1 -race -tags=$tags "$@" ./usecases/classification/...