## Description - This PR moves all specs from slim to fat container to run tests underneath it - Fat has the actual libraries that are being shipping to customers, hence this PR - Also includes moving Git tests from using GitHub to Gitea ## Type of change - New run (non-breaking change which adds functionality) ## How Has This Been Tested? - Cypress CI Fat runs ## Checklist: ### QA activity: - [X] Test plan has been approved by relevant developers - [X] Test plan has been peer reviewed by QA - [X] Cypress test cases have been added and approved by either SDET or manual QA - [X] Organized project review call with relevant stakeholders after Round 1/2 of QA - [X] Added Test Plan Approved label after reveiwing all Cypress test Co-authored-by: yatinappsmith <84702014+yatinappsmith@users.noreply.github.com>
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# By default we assume that the target for the CI is local
|
|
target=local
|
|
|
|
while :; do
|
|
case $1 in
|
|
-e|--env)
|
|
if [ "$2" ]; then
|
|
target=$2
|
|
shift
|
|
else
|
|
die 'ERROR: "--env" requires a non-empty option argument. Allowed values local/ci'
|
|
fi
|
|
;;
|
|
--env=?*)
|
|
target=${1#*=} # Delete everything up to "=" and assign the remainder.
|
|
;;
|
|
*) # Default case: No more options, so break out of the loop.
|
|
break
|
|
esac
|
|
shift
|
|
done
|
|
|
|
echo "Got the target: $target"
|
|
if [ "$target" == "ci" ]; then
|
|
# On the CI server run the tests in parallel
|
|
# This requires the projectId and the record_key to be configured in your environment variables. By default this is defined on the CI server
|
|
echo "Got the Build ID: $BUILD_ID"
|
|
$(npm bin)/cypress run --headless \
|
|
--record --key "$CYPRESS_RECORD_KEY" --ci-build-id $BUILD_ID \
|
|
--parallel --group "Electrons on Gitlab CI" \
|
|
--spec "cypress/integration/Regression_TestSuite/**/*.js"
|
|
else
|
|
$(npm bin)/cypress run --headless --browser chromium --spec "cypress/integration/Regression_TestSuite/**/*.js"
|
|
fi
|