Skip to content

Commit

Permalink
test (e2e): Add new e2e testRigor tests (#2279)
Browse files Browse the repository at this point in the history
E2e cover of the main functionalities
CI added to build.yml

Co-authored-by: Amanda Silva <[email protected]>
Co-authored-by: Víctor Romero <[email protected]>
  • Loading branch information
3 people authored Feb 25, 2025
1 parent cfab627 commit 4f356bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions e2e/testRigor/run_testrigor_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4f356bc

Please sign in to comment.