Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Oct 25, 2023
1 parent 83edac4 commit 619443e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ else
fi
cp $SOURCE_ROOT/ci/container/package.json .
npm install
echo "[DEBUG] List of the npm packages: "
npm list

PACKAGE_NAME=$(cd $WORKSPACE && ls snowflake-sdk*.tgz)
npm install $WORKSPACE/${PACKAGE_NAME}
Expand Down Expand Up @@ -93,6 +95,7 @@ fi

if [[ -z "$GITHUB_ACTIONS" ]]; then
echo "[INFO] Running Internal Tests. Test result: $WORKSPACE/junit-system-test.xml"
echo "[DEBUG]" "${MOCHA_CMD[@]}"
if ! ${MOCHA_CMD[@]} "$SOURCE_ROOT/system_test/**/*.js"; then
echo "[ERROR] Test failed"
[[ -f "$WORKSPACE/junit.xml" ]] && cat $WORKSPACE/junit.xml
Expand All @@ -103,6 +106,7 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then
fi

echo "[INFO] Running Tests: Test result: $WORKSPACE/junit.xml"
echo "[DEBUG]" "${MOCHA_CMD[@]}"
if ! ${MOCHA_CMD[@]} "$SOURCE_ROOT/test/**/*.js"; then
echo "[ERROR] Test failed"
[[ -f "$WORKSPACE/junit.xml" ]] && cat $WORKSPACE/junit.xml
Expand Down

0 comments on commit 619443e

Please sign in to comment.