chore: Make flake attempt configurable for dev
@@ -43,8 +43,9 @@ test: embed_files lint
# acceptance is not part of the unit tests, and has its own target, see below.
GINKGO_NODES ?= 2
+FLAKE_ATTEMPTS ?= 2
test-acceptance: showfocus embed_files
- ginkgo -nodes ${GINKGO_NODES} -stream --flakeAttempts=2 -failOnPending acceptance/.
+ ginkgo -nodes ${GINKGO_NODES} -stream --flakeAttempts=${FLAKE_ATTEMPTS} -failOnPending acceptance/.
showfocus:
@if test `cat acceptance/*.go | grep -c 'FIt\|FWhen\|FDescribe\|FContext'` -gt 0 ; then echo ; echo 'Focus:' ; grep 'FIt\|FWhen\|FDescribe\|FContext' acceptance/* ; echo ; fi
