mirror of
https://github.com/mudler/luet.git
synced 2025-09-14 14:22:38 +00:00
Tweak ginkgo parameters
- Add flakeAttempts - Add race detection to CI runs
This commit is contained in:
2
Makefile
2
Makefile
@@ -19,7 +19,7 @@ fmt:
|
||||
test:
|
||||
GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
|
||||
GO111MODULE=off go get github.com/onsi/gomega/...
|
||||
ginkgo -race -r ./...
|
||||
ginkgo -race -r -flakeAttempts 3 ./...
|
||||
|
||||
.PHONY: test-integration
|
||||
test-integration:
|
||||
|
@@ -23,7 +23,7 @@ coveragetxt="coverage.txt"
|
||||
|
||||
|
||||
generate_cover_data() {
|
||||
ginkgo -failFast -cover -r .
|
||||
ginkgo -flakeAttempts=3 -race -failFast -cover -r .
|
||||
echo "" > ${coveragetxt}
|
||||
find . -type f -name "*.coverprofile" | while read -r file; do cat "$file" >> ${coveragetxt} && mv "$file" "${coverdir}"; done
|
||||
echo "mode: $covermode" >"$profile"
|
||||
|
Reference in New Issue
Block a user