From 21f3ece224eb58733c8a608f2779e5d49de261e2 Mon Sep 17 00:00:00 2001 From: Vijet M Date: Wed, 23 Sep 2020 14:51:39 -0700 Subject: [PATCH] Updates unit.sh script to only run unit tests =) (#483) --- scripts/lint.sh | 2 +- scripts/unit.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index a2e1e74b8..6d6398783 100644 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -15,4 +15,4 @@ fi echo ${TEST_SUITE_TYPE} > ${TEST_SUITE_TYPE_FILE} echo ${TEST_RESULT_FILE_DIR} > ${TEST_RESULT_FILE_DIR_FILE} -exit ${PUBLISH_TYPE_AND_RESULT_DIR} +exit ${PUBLISH_TYPE_AND_RESULT_DIR_BUT_SUCCEED_IF_NO_RESULTS} diff --git a/scripts/unit.sh b/scripts/unit.sh index 4d6af6403..2140b6e5e 100644 --- a/scripts/unit.sh +++ b/scripts/unit.sh @@ -5,7 +5,7 @@ setup_service google-chrome-stable 79.0.3945.88-1 source ${OKTA_HOME}/${REPO}/scripts/setup.sh -export TEST_SUITE_TYPE="jsunit" +export TEST_SUITE_TYPE="junit" export TEST_RESULT_FILE_DIR="${REPO}/build2/reports/unit" # build is required to run E2E tests @@ -14,7 +14,7 @@ if ! yarn build; then exit ${TEST_FAILURE} fi -if ! yarn test:report; then +if ! yarn test:unit; then echo "unit failed! Exiting..." exit ${TEST_FAILURE} fi