You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2022/01/31 08:58:40 UTC

[camel-k] 29/40: Ensure all kubernetes tests are executed rather than just fail-first

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 202fdd89601a0a4177ef825482697748f708063f
Author: phantomjinx <p....@phantomjinx.co.uk>
AuthorDate: Wed Jan 5 13:49:01 2022 +0000

    Ensure all kubernetes tests are executed rather than just fail-first
    
    * Provides coverage of all failing tests not just the tests up to the
      failed test.
---
 .github/actions/e2e-kubernetes/action.yml | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/.github/actions/e2e-kubernetes/action.yml b/.github/actions/e2e-kubernetes/action.yml
index 6dfde05..ec8c2c2 100644
--- a/.github/actions/e2e-kubernetes/action.yml
+++ b/.github/actions/e2e-kubernetes/action.yml
@@ -85,11 +85,17 @@ runs:
       export CAMEL_K_TEST_IMAGE_VERSION=${CUSTOM_VERSION}
       export CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACE=${{ env.CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACE }}
 
-      # Then run integration tests
-      make test-integration
-      make test-service-binding
-      make test-quarkus-native
-      make test-kustomize
+      # Then run all integration tests rather than ending on first failure
+      set -e
+      exit_code=0
+      make test-integration || exit_code=1
+      make test-service-binding || exit_code=1
+      make test-quarkus-native || exit_code=1
+      make test-kustomize || exit_code=1
+      set +e
+
+      echo "Tests completed with exit code: ${exit_code}"
+      exit ${exit_code}
 
   - name: Cleanup
     uses: ./.github/actions/kamel-cleanup