Skip to content

Commit 74812c3

Browse files
test suite
1 parent f685c1c commit 74812c3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

scripts/tests/run-test.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if [[ $# -ne 1 ]]; then
2020
exit 1
2121
fi
2222

23+
ENV="${ENV:-local}"
2324
TEST_TYPE="$1"
2425

2526
# Validate test type early
@@ -50,11 +51,11 @@ else
5051
COV_PATH="src/gateway_api"
5152
fi
5253

54+
# Note: TEST_PATH is intentionally unquoted to allow glob expansion for unit tests
5355
if [[ "$ENV" = "remote" ]] && [[ "$TEST_TYPE" != "unit" ]]; then
54-
# Note: TEST_PATH is intentionally unquoted to allow glob expansion for unit tests
55-
poetry run pytest ${TEST_PATH} --env="remote" -v \
56-
--api-name="${PROXYGEN_API_NAME}" --proxy-name="${PROXYGEN_API_NAME}--internal-dev--${PROXYGEN_API_NAME}-pr-${PR_NUMBER}" \
57-
--apigee-access-token="${APIGEE_ACCESS_TOKEN}" \
56+
poetry run pytest ${TEST_PATH} --env="${ENV}" -v \
57+
--api-name="${PROXYGEN_API_NAME}" \
58+
--proxy-name="${PROXYGEN_API_NAME}--internal-dev--${PROXYGEN_API_NAME}-pr-${PR_NUMBER}" \
5859
--cov="${COV_PATH}" \
5960
--cov-report=html:test-artefacts/coverage-html \
6061
--cov-report=term \

0 commit comments

Comments
 (0)