Skip to content

Commit

Permalink
Updates unit.sh script to only run unit tests =) (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta authored Sep 23, 2020
1 parent f862e7e commit 21f3ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
4 changes: 2 additions & 2 deletions scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 21f3ece

Please sign in to comment.