From 9f935a33c0052456d76a02d27124f6ca4076730b Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Mon, 15 Aug 2022 08:37:19 +0300 Subject: [PATCH] fix(doc): add more examples on how to run node-redis test image --- tests/README.md | 7 +++++++ tests/node-redis.Dockerfile | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) 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