From 42d110f0ac5482a110234f634b9c6f86a3532f37 Mon Sep 17 00:00:00 2001 From: Vijet M Date: Wed, 23 Sep 2020 13:53:12 -0700 Subject: [PATCH] Updates unit.sh script to only run unit tests =) --- scripts/unit.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/unit.sh b/scripts/unit.sh index 6c24ec18d..043fc13fc 100644 --- a/scripts/unit.sh +++ b/scripts/unit.sh @@ -5,10 +5,16 @@ 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" -if ! yarn test:report; then +# build is required to run E2E tests +if ! yarn build; then + echo "build failed! Exiting..." + exit ${TEST_FAILURE} +fi + +if ! yarn test:unit; then echo "unit failed! Exiting..." exit ${TEST_FAILURE} fi