File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ jobs:
117
117
- run :
118
118
name : Run e2e tests
119
119
command : |
120
- cd tests/e2e/src && export TEST_FILES=$(circleci tests glob "tests/**/*.ts" | circleci tests split --split-by=timings) && cd ../../..
120
+ export TEST_FILES=$(circleci tests glob "tests/e2e/dist/tests/**/*.js" | circleci tests split --split-by=timings)
121
+ echo "Running tests: $TEST_FILES"
121
122
.circleci/e2e/test.app.sh
122
123
- when :
123
124
condition :
Original file line number Diff line number Diff line change 3
3
4
4
yarn --cwd tests/e2e install
5
5
6
- # create folder before tests run to prevent permissions issue
6
+ # Create folder before tests run to prevent permissions issues
7
7
mkdir -p tests/e2e/remote
8
8
9
- # run rte
9
+ # Run RTE (Redis Test Environment)
10
10
docker-compose -f tests/e2e/rte.docker-compose.yml build
11
11
docker-compose -f tests/e2e/rte.docker-compose.yml up --force-recreate -d -V
12
- ./tests/e2e/wait-for-redis.sh localhost 12000 && \
12
+ ./tests/e2e/wait-for-redis.sh localhost 12000
13
13
14
- # run tests
15
- RI_SOCKETS_CORS=true \
16
- yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci
14
+ # Run tests with the split files
15
+ if [ -z " $TEST_FILES " ]; then
16
+ echo " No TEST_FILES specified, running all tests..."
17
+ RI_SOCKETS_CORS=true yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci
18
+ else
19
+ echo " Running split tests: $TEST_FILES "
20
+ RI_SOCKETS_CORS=true yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci --testFiles=" $TEST_FILES "
21
+ fi
You can’t perform that action at this time.
0 commit comments