Skip to content

Commit 515273c

Browse files
committed
fix 5
1 parent 6c8ab98 commit 515273c

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ jobs:
117117
- run:
118118
name: Run e2e tests
119119
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"
121122
.circleci/e2e/test.app.sh
122123
- when:
123124
condition:

.circleci/e2e/test.app.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ set -e
33

44
yarn --cwd tests/e2e install
55

6-
# create folder before tests run to prevent permissions issue
6+
# Create folder before tests run to prevent permissions issues
77
mkdir -p tests/e2e/remote
88

9-
# run rte
9+
# Run RTE (Redis Test Environment)
1010
docker-compose -f tests/e2e/rte.docker-compose.yml build
1111
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
1313

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

0 commit comments

Comments
 (0)