diff options
Diffstat (limited to 'vid-webpack-master/cypress/pipeline/run_group2.sh')
-rw-r--r-- | vid-webpack-master/cypress/pipeline/run_group2.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/pipeline/run_group2.sh b/vid-webpack-master/cypress/pipeline/run_group2.sh new file mode 100644 index 000000000..2f30fa7df --- /dev/null +++ b/vid-webpack-master/cypress/pipeline/run_group2.sh @@ -0,0 +1,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' ',') |