diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2020-01-06 11:31:20 +0200 |
---|---|---|
committer | Eylon Malin <eylon.malin@intl.att.com> | 2020-01-08 11:00:18 +0200 |
commit | 8cda702e958381eca1c016e6359bcec641b02d63 (patch) | |
tree | c7401a419cb02a810901ea71eb461350a51b6d22 /vid-webpack-master/cypress/pipeline/run_groupRemain.sh | |
parent | 16ef9772c84d9110b451a1a28f0fe76e40f8bd53 (diff) |
cypress test - split cypress test to 3 groups
Issue-ID: VID-740
Change-Id: I772e26cc71339027d8a273acbb256ea1a8d81a11
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Diffstat (limited to 'vid-webpack-master/cypress/pipeline/run_groupRemain.sh')
-rw-r--r-- | vid-webpack-master/cypress/pipeline/run_groupRemain.sh | 17 |
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' ',') |