Merge from ecomp 718fd196 - Modern UI
[vid.git] / vid-webpack-master / cypress / pipeline / run_group2.sh
1 #!/usr/bin/env bash
2
3 . $HOME/.nvm/nvm.sh
4
5 set -x
6
7 CYPRESS_HOME_DIR=$1
8 TESTS_GROUP_FILE_1=cypress/pipeline/group1.txt
9 TESTS_GROUP_FILE=cypress/pipeline/group2.generated.txt
10
11 cd ${CYPRESS_HOME_DIR}
12
13 # make group2 by "negating" group1.txt
14 ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${TESTS_GROUP_FILE_1} > ${TESTS_GROUP_FILE}
15
16 cat ${TESTS_GROUP_FILE}
17 npm run cypress:headless -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',')