diff --git a/tests/README.md b/tests/README.md index 938d68f3f..b9b064ea9 100644 --- a/tests/README.md +++ b/tests/README.md @@ -29,6 +29,13 @@ Run: docker run --network=host node-redis-test ``` +to run only selected tests use: + +``` +docker run --network=host node-redis-test npm run test -w ./packages/client -- --redis-version=2.8 -g +``` + +In general, you can add this way any option from [mocha framework](https://mochajs.org/#command-line-usage). ## Jedis Integration test for the Jedis client. diff --git a/tests/node-redis.Dockerfile b/tests/node-redis.Dockerfile index f580aff1f..c5c11f2c4 100644 --- a/tests/node-redis.Dockerfile +++ b/tests/node-redis.Dockerfile @@ -9,10 +9,6 @@ RUN git clone -b dragonfly https://github.com/dragonflydb/node-redis.git WORKDIR /app/node-redis -RUN npm install +RUN npm install && npm run build:tests-tools -RUN npm run build -w ./packages/client - -RUN npm run build -w ./packages/test-utils - -CMD npm run test -w ./packages/client -- --redis-version=2.8 +CMD npm run test -w ./packages/client -- --redis-version=2.8