From 4f356bc3166d06013c8eb2215d8056021ce92e4c Mon Sep 17 00:00:00 2001 From: Amanda Date: Tue, 25 Feb 2025 16:34:00 -0300 Subject: [PATCH] test (e2e): Add new e2e testRigor tests (#2279) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit E2e cover of the main functionalities CI added to build.yml Co-authored-by: Amanda Silva Co-authored-by: VĂ­ctor Romero <46640258+IOhacker@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++++ e2e/testRigor/run_testrigor_tests.sh | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 496b4a1b4..9c2d6b756 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,6 +50,10 @@ jobs: run: npm install -g --verbose testrigor-cli - name: Run testRigor tests + env: + MIFOS_TEST_SUITE_ID: ${{ secrets.MIFOS_TEST_SUITE_ID }} + MIFOS_AUTH_TOKEN: ${{ secrets.MIFOS_AUTH_TOKEN }} + LOCALHOST_URL: ${{ secrets.LOCALHOST_URL }} run: . ./e2e/testRigor/run_testrigor_tests.sh - name: Deploy to github pages diff --git a/e2e/testRigor/run_testrigor_tests.sh b/e2e/testRigor/run_testrigor_tests.sh index ae3d26e38..e1ce95e2a 100644 --- a/e2e/testRigor/run_testrigor_tests.sh +++ b/e2e/testRigor/run_testrigor_tests.sh @@ -5,15 +5,13 @@ COMMIT_NAME="$(git rev-parse --verify HEAD)" # Define default values for missing variables -MIFOS_TEST_SUITE_ID="BqnXhRcaZ59ADvxHo" -MIFOS_AUTH_TOKEN="c3903536-0371-4ba3-afeb-69cf9b408ca6" -LOCALHOST_URL="http://localhost:4200" +# MIFOS_TEST_SUITE_ID="$MIFOS_TEST_SUITE_ID" +# MIFOS_AUTH_TOKEN="$MIFOS_AUTH_TOKEN" +# LOCALHOST_URL="$MIFOS_LOCALHOST_URL" # Paths for the test cases and rules files TEST_CASES_PATH="e2e/testRigor/testcases/**/*.txt" RULES_PATH="e2e/testRigor/rules/**/*.txt" -curl -I $LOCALHOST_URL:4200 - # Command to run the tests using the testRigor CLI testrigor test-suite run "$MIFOS_TEST_SUITE_ID" --token "$MIFOS_AUTH_TOKEN" --localhost --url "$LOCALHOST_URL" --test-cases-path "$TEST_CASES_PATH" --rules-path "$RULES_PATH" --branch "$BRANCH_NAME" --commit "$COMMIT_NAME" \ No newline at end of file