fix tests vfmodule in ala carte instance
[vid.git] / vid-webpack-master / cypress / pipeline / run_groupRemain.sh
1 #!/usr/bin/env bash
2
3 . $HOME/.nvm/nvm.sh
4
5 set -x
6
7 CYPRESS_HOME_DIR=$1
8 REMAIN_TESTS_FILE=cypress/pipeline/remain.generated.txt
9 ALL_TESTS_IN_GROUPS_FILE=cypress/pipeline/all_tests.txt
10
11 cd ${CYPRESS_HOME_DIR}
12 cat cypress/pipeline/group?.txt | sort > ${ALL_TESTS_IN_GROUPS_FILE}
13 # make group2 by "negating" group1.txt
14 ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${ALL_TESTS_IN_GROUPS_FILE} > ${REMAIN_TESTS_FILE}
15
16 cat ${REMAIN_TESTS_FILE}
17 npm run cypress:headless --max-old-space-size=4096 -- --spec=$(cat ${REMAIN_TESTS_FILE} | tr '\n' ',')