Skip to content

Commit

Permalink
wip: use run_app_tests from kash [additional tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Apr 18, 2024
1 parent a81cff8 commit 39e6039
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion scripts/kash
Submodule kash updated 1 files
+174 −83 kash.sh
42 changes: 0 additions & 42 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,48 +37,6 @@ while getopts "m:n:cr:" option; do
esac
done

run_app_tests() {
local REPO_DIR="$1"
local KLI_BASE="$2"
local CODE_COVERAGE="$3"
local NODE_VER="$4"
local MONGO_VER="$5"
local WORKSPACE_DIR
WORKSPACE_DIR="$(dirname "$REPO_DIR")"

init_app_infos "$REPO_DIR" "$WORKSPACE_DIR/development/$KLI_BASE"

APP=$(get_app_name)
VERSION=$(get_app_version)
FLAVOR=$(get_app_flavor)

echo "About to run tests for $APP v$VERSION-$FLAVOR ..."

## Start mongo
##

if [ -n "$MONGO_VER" ]; then
begin_group "Starting mongo $MONGO_VER ..."

use_mongo "$MONGO_VER"
k-mongo

end_group "Starting mongo $MONGO_VER ..."
fi

## Run tests
##

use_node "$NODE_VER"
yarn test:server

## Publish code coverage
##

if [ "$CODE_COVERAGE" = true ]; then
send_coverage_to_cc "$CC_TEST_REPORTER_ID"
fi
}

## Init workspace
##
Expand Down

0 comments on commit 39e6039

Please sign in to comment.