Skip to content

Commit

Permalink
Merge pull request #136 from AlinaSecret/enable-race-detection
Browse files Browse the repository at this point in the history
Enable race detection in unit tests
  • Loading branch information
SchSeba authored Jun 5, 2023
2 parents 2604dec + 40f7c45 commit 9ca709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ root="$(dirname "$0")/.."
time=$(date +'%Y-%m-%d_%H-%M-%S')
filePath="/tmp/go-cover.$time.tmp"
echo "Coverage profile file path: $filePath"
go test --tags=unittests -coverprofile="$filePath" "./${root}/pkg/..."
go test --tags=unittests -race -coverprofile="$filePath" "./${root}/pkg/..."
go tool cover -html="$filePath"

0 comments on commit 9ca709c

Please sign in to comment.