Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 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' ',') |