aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/pipeline/run_group2.sh
blob: 2f30fa7df4090e788f5a7541ba77a92f1ab09321 (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
TESTS_GROUP_FILE_1=cypress/pipeline/group1.txt
TESTS_GROUP_FILE=cypress/pipeline/group2.generated.txt

cd ${CYPRESS_HOME_DIR}

# make group2 by "negating" group1.txt
ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${TESTS_GROUP_FILE_1} > ${TESTS_GROUP_FILE}

cat ${TESTS_GROUP_FILE}
npm run cypress:headless -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',')