Tweak ginkgo parameters

- Add flakeAttempts
- Add race detection to CI runs
This commit is contained in:
Ettore Di Giacinto
2020-03-22 22:05:30 +01:00
parent d5166c55ab
commit 7cf6d51355
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ fmt:
test: test:
GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
GO111MODULE=off go get github.com/onsi/gomega/... GO111MODULE=off go get github.com/onsi/gomega/...
ginkgo -race -r ./... ginkgo -race -r -flakeAttempts 3 ./...
.PHONY: test-integration .PHONY: test-integration
test-integration: test-integration:

View File

@@ -23,7 +23,7 @@ coveragetxt="coverage.txt"
generate_cover_data() { generate_cover_data() {
ginkgo -failFast -cover -r . ginkgo -flakeAttempts=3 -race -failFast -cover -r .
echo "" > ${coveragetxt} echo "" > ${coveragetxt}
find . -type f -name "*.coverprofile" | while read -r file; do cat "$file" >> ${coveragetxt} && mv "$file" "${coverdir}"; done find . -type f -name "*.coverprofile" | while read -r file; do cat "$file" >> ${coveragetxt} && mv "$file" "${coverdir}"; done
echo "mode: $covermode" >"$profile" echo "mode: $covermode" >"$profile"