Skip to content

Commit

Permalink
Updates unit.sh script to only run unit tests =)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta authored and aarongranick-okta committed Sep 23, 2020
1 parent 93db4b1 commit 42d110f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42d110f

Please sign in to comment.