summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/pipeline/run_groupRemain.sh
blob: 51c30411d44095907ee323d1ff8b73db8feae224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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' ',')