Skip to content

Commit

Permalink
Makefile: Update the e2e target to use ginkgo (#2367)
Browse files Browse the repository at this point in the history
Update the root Makefile and update the `e2e` target to use the ginkgo
executable instead of `go test ...` as logs produce when running the e2e
suite aren't captured until after the process has completed. This leads
to situations where failing tests aren't immediately communicated back
and loss of logs entirely in the case where the process was manually
teminated.

Signed-off-by: timflannagan <timflannagan@gmail.com>
  • Loading branch information
timflannagan authored Oct 1, 2021
1 parent 396b546 commit 584e12a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,18 @@ setup-bare: clean e2e.namespace
. ./scripts/package_release.sh 1.0.0 test/e2e/resources test/e2e/e2e-bare-values.yaml
. ./scripts/install_bare.sh $(shell cat ./e2e.namespace) test/e2e/resources

# e2e test exculding the rh-operators directory which tests rh-operators and their metric cardinality.
GINKGO_OPTS := -flakeAttempts 3 -randomizeAllSpecs -v --timeout 120m

# TODO(tflannag): Remove this target entirely and move downstream
e2e:
go test -v $(MOD_FLAGS) -failfast -timeout 150m ./test/e2e/... -namespace=openshift-operators -kubeconfig=${KUBECONFIG} -olmNamespace=openshift-operator-lifecycle-manager -dummyImage=bitnami/nginx:latest -ginkgo.flakeAttempts=3
$(GINKGO) \
./test/e2e \
$(GINKGO_OPTS) \
$< -- \
-namespace=openshift-operators \
-kubeconfig=${KUBECONFIG} \
-olmNamespace=openshift-operator-lifecycle-manager \
-dummyImage=bitnami/nginx:latest

### Start: End To End Tests ###

Expand Down

0 comments on commit 584e12a

Please sign in to comment.