summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/pipeline/run_groupRemain.sh
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-01-08 10:34:51 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-08 10:34:51 +0000
commit0d51682c8db4e9309732e5a773ba45dac66fe5fd (patch)
tree217ef10bed0fe50eb1e4b9ae214a4fe448e9ea42 /vid-webpack-master/cypress/pipeline/run_groupRemain.sh
parentf00a29514c439df423501efc5eff8610c09d8601 (diff)
parent8cda702e958381eca1c016e6359bcec641b02d63 (diff)
Merge "cypress test - split cypress test to 3 groups"
Diffstat (limited to 'vid-webpack-master/cypress/pipeline/run_groupRemain.sh')
-rw-r--r--vid-webpack-master/cypress/pipeline/run_groupRemain.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/pipeline/run_groupRemain.sh b/vid-webpack-master/cypress/pipeline/run_groupRemain.sh
new file mode 100644
index 000000000..51c30411d
--- /dev/null
+++ b/vid-webpack-master/cypress/pipeline/run_groupRemain.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+. $HOME/.nvm/nvm.sh
+
+set -x
+
+CYPRESS_HOME_DIR=$1
+REMAIN_TESTS_FILE=cypress/pipeline/remain.generated.txt
+ALL_TESTS_IN_GROUPS_FILE=cypress/pipeline/all_tests.txt
+
+cd ${CYPRESS_HOME_DIR}
+cat cypress/pipeline/group?.txt | sort > ${ALL_TESTS_IN_GROUPS_FILE}
+# make group2 by "negating" group1.txt
+ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${ALL_TESTS_IN_GROUPS_FILE} > ${REMAIN_TESTS_FILE}
+
+cat ${REMAIN_TESTS_FILE}
+npm run cypress:headless --max-old-space-size=4096 -- --spec=$(cat ${REMAIN_TESTS_FILE} | tr '\n' ',')